From 0f936ec0e7606cb79434d94096b6e113a7ce78eb Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
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/reply-comment-form.stories.tsx')

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<typeof ReplyCommentForm>;
+  title: 'Organisms/Comment/Reply Form',
+} satisfies Meta<typeof ReplyCommentForm>;
 
-const Template: ComponentStory<typeof ReplyCommentForm> = (args) => (
-  <ReplyCommentForm {...args} />
-);
+export default meta;
 
-/**
- * ReplyCommentForm Stories - Default
- */
-export const Default = Template.bind({});
-Default.args = {
-  commentId: 5,
-  heading: <Heading level={2}>Reply to comment 5</Heading>,
+type Story = StoryObj<typeof meta>;
+
+export const Example: Story = {
+  args: {
+    commentId: 5,
+    heading: <Heading level={2}>Reply to comment 5</Heading>,
+  },
 };
-- 
cgit v1.2.3

