From 2771de88f40a5f4ed7480bd8614532dda72deeda Mon Sep 17 00:00:00 2001 From: Armand Philippot 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 --- src/components/organisms/layout/comments-list.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/organisms/layout/comments-list.test.tsx') diff --git a/src/components/organisms/layout/comments-list.test.tsx b/src/components/organisms/layout/comments-list.test.tsx index f245ebb..d7e170c 100644 --- a/src/components/organisms/layout/comments-list.test.tsx +++ b/src/components/organisms/layout/comments-list.test.tsx @@ -1,4 +1,4 @@ -import { describe, expect, it } from '@jest/globals'; +import { describe, it } from '@jest/globals'; import { render } from '../../../../tests/utils'; import { saveComment } from './comment.fixture'; import { CommentsList } from './comments-list'; @@ -7,7 +7,7 @@ import { comments } from './comments-list.fixture'; describe('CommentsList', () => { it('renders a comments list', () => { render( - + ); }); }); -- cgit v1.2.3