From 0f936ec0e7606cb79434d94096b6e113a7ce78eb Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 15 Dec 2023 18:35:16 +0100 Subject: refactor(stories): migrate stories to CSF3 format --- .../reply-comment-form.stories.tsx | 30 +++++++++------------- 1 file changed, 12 insertions(+), 18 deletions(-) (limited to 'src/components/organisms/comment/reply-comment-form') diff --git a/src/components/organisms/comment/reply-comment-form/reply-comment-form.stories.tsx b/src/components/organisms/comment/reply-comment-form/reply-comment-form.stories.tsx index 57174ea..1638e15 100644 --- a/src/components/organisms/comment/reply-comment-form/reply-comment-form.stories.tsx +++ b/src/components/organisms/comment/reply-comment-form/reply-comment-form.stories.tsx @@ -1,25 +1,19 @@ -import type { ComponentMeta, ComponentStory } from '@storybook/react'; +import type { Meta, StoryObj } from '@storybook/react'; import { Heading } from '../../../atoms'; import { ReplyCommentForm } from './reply-comment-form'; -/** - * ReplyCommentForm - Storybook Meta - */ -export default { - title: 'Organisms/Comment/ReplyCommentForm', +const meta = { component: ReplyCommentForm, - argTypes: {}, -} as ComponentMeta; + title: 'Organisms/Comment/Reply Form', +} satisfies Meta; -const Template: ComponentStory = (args) => ( - -); +export default meta; -/** - * ReplyCommentForm Stories - Default - */ -export const Default = Template.bind({}); -Default.args = { - commentId: 5, - heading: Reply to comment 5, +type Story = StoryObj; + +export const Example: Story = { + args: { + commentId: 5, + heading: Reply to comment 5, + }, }; -- cgit v1.2.3