Skip to content

Commit

Permalink
Small update to allow storybook iconName control to work
Browse files Browse the repository at this point in the history
  • Loading branch information
georgewrmarshall committed Jul 26, 2023
1 parent df3b502 commit ce01147
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ export default {
},
args: {
size: AvatarIconSize.Md,
iconName: IconName.SwapHorizontal,
},
} as Meta<typeof AvatarIcon>;

const Template: StoryFn<typeof AvatarIcon> = (args) => {
return <AvatarIcon {...args} iconName={IconName.SwapHorizontal} />;
return <AvatarIcon {...args} />;
};

export const DefaultStory = Template.bind({});
Expand All @@ -67,10 +68,6 @@ export const SizeStory: StoryFn<typeof AvatarIcon> = (args) => (
);
SizeStory.storyName = 'Size';

SizeStory.args = {
iconName: IconName.Confirmation,
};

export const IconNameStory: StoryFn<typeof AvatarIcon> = (args) => (
<Box display={Display.Flex} gap={1}>
<AvatarIcon
Expand Down

0 comments on commit ce01147

Please sign in to comment.