From 2771de88f40a5f4ed7480bd8614532dda72deeda Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Sat, 4 Nov 2023 19:26:16 +0100
Subject: refactor(components): rewrite CommentForm component

* remove `Notice` prop to handle it directly in the form
* replace `saveComment` prop with `onSubmit`
* use `useForm` hook to handle the form
---
 .../organisms/layout/comments-list.stories.tsx          | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

(limited to 'src/components/organisms/layout/comments-list.stories.tsx')

diff --git a/src/components/organisms/layout/comments-list.stories.tsx b/src/components/organisms/layout/comments-list.stories.tsx
index 4b32d7b..c1a262e 100644
--- a/src/components/organisms/layout/comments-list.stories.tsx
+++ b/src/components/organisms/layout/comments-list.stories.tsx
@@ -1,4 +1,4 @@
-import { ComponentMeta, ComponentStory } from '@storybook/react';
+import type { ComponentMeta, ComponentStory } from '@storybook/react';
 import { CommentsList } from './comments-list';
 import { comments } from './comments-list.fixture';
 
@@ -39,20 +39,7 @@ export default {
         required: true,
       },
     },
-    Notice: {
-      control: {
-        type: null,
-      },
-      description: 'A component to display a success or error message.',
-      table: {
-        category: 'Options',
-      },
-      type: {
-        name: 'function',
-        required: false,
-      },
-    },
-    saveComment: {
+    onSubmit: {
       control: {
         type: null,
       },
-- 
cgit v1.2.3

