-
Notifications
You must be signed in to change notification settings - Fork 709
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2459 from DouyinFE/type/avatar
chore: fix Avatar/AvatarGroup size type error
- Loading branch information
Showing
5 changed files
with
20 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
import * as React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import Demo from './Demo'; | ||
import Avatar from '../index'; | ||
import AvatarGroup from '../avatarGroup'; | ||
|
||
const stories = storiesOf('Avatar', module); | ||
|
||
stories.add('Avatar', () => <Demo />); | ||
|
||
stories.add('Avatar', () => <> | ||
<Avatar size={'6rem'} /> | ||
<Avatar size="small" /> | ||
<AvatarGroup size="6rem"> | ||
<Avatar color="red" alt='Lisa LeBlanc'>LL</Avatar> | ||
<Avatar alt='Caroline Xiao'>CX</Avatar> | ||
</AvatarGroup> | ||
</>); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters