diff --git a/src/components/Avatar/Avatar.stories.tsx b/src/components/Avatar/Avatar.stories.tsx index 9cc7dfe..629c52e 100644 --- a/src/components/Avatar/Avatar.stories.tsx +++ b/src/components/Avatar/Avatar.stories.tsx @@ -1,18 +1,16 @@ import { Avatar } from './Avatar'; -import type { ComponentMeta, ComponentStoryObj } from '@storybook/react'; +import type { Meta, StoryObj } from '@storybook/react'; -export default { title: 'Avatar', component: Avatar } as ComponentMeta< - typeof Avatar ->; +export default { title: 'Avatar', component: Avatar } as Meta; -export const Image: ComponentStoryObj = { +export const Image: StoryObj = { args: { size: 'large', src: 'https://avatars.dicebear.com/v2/male/e828b4072fdb3dc6312b67977f0b247a.svg', }, }; -export const NoImage: ComponentStoryObj = { +export const NoImage: StoryObj = { args: {}, };