From 59ff9ecd74e89e94e4451575ffae4b5e3bac7e8b Mon Sep 17 00:00:00 2001 From: Hiroshi Morishige Date: Sat, 7 Jan 2023 11:00:57 +0900 Subject: [PATCH] update: story --- src/components/Avatar/Avatar.stories.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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: {}, };