Commit 85fc108 1 parent 3fbf7e2 commit 85fc108 Copy full SHA for 85fc108
File tree 1 file changed +8
-3
lines changed
src/components/AvatarStack/__stories__
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -61,16 +61,21 @@ function getTemplateChildren(args: ComponentType) {
61
61
}
62
62
63
63
const Template : StoryFn < ComponentType > = ( args ) => {
64
- const { avatarSize : _ , ...props } = args ;
65
- return < AvatarStack { ...props } > { getTemplateChildren ( args ) } </ AvatarStack > ;
64
+ const { avatarSize, size, ...props } = args ;
65
+ return (
66
+ < AvatarStack { ...props } size = { size || avatarSize } >
67
+ { getTemplateChildren ( args ) }
68
+ </ AvatarStack >
69
+ ) ;
66
70
} ;
67
71
68
72
const TemplateWithButtonOverride : StoryFn < ComponentType > = ( args ) => {
69
- const { avatarSize, ...props } = args ;
73
+ const { avatarSize, size , ...props } = args ;
70
74
71
75
return (
72
76
< AvatarStack
73
77
{ ...props }
78
+ size = { size || avatarSize }
74
79
renderMoreButton = { ( { count} ) => (
75
80
< Tooltip content = { 'Somehow display list of all other items' } >
76
81
< AvatarStack . MoreButton
You can’t perform that action at this time.
0 commit comments