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/comment.module.scss | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/components/organisms/layout/comment.module.scss') diff --git a/src/components/organisms/layout/comment.module.scss b/src/components/organisms/layout/comment.module.scss index f26b3fe..096f4c4 100644 --- a/src/components/organisms/layout/comment.module.scss +++ b/src/components/organisms/layout/comment.module.scss @@ -65,9 +65,14 @@ } .form { - margin-top: var(--spacing-sm); + &__wrapper { + margin-top: var(--spacing-sm); + } - form > * { - margin-inline: auto; + &__heading { + width: fit-content; + margin: 0 auto var(--spacing-md) auto; } + + margin-inline: auto; } -- cgit v1.2.3