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/templates/page/page-layout.module.scss | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/components/templates/page/page-layout.module.scss') diff --git a/src/components/templates/page/page-layout.module.scss b/src/components/templates/page/page-layout.module.scss index 4615f60..75b996c 100644 --- a/src/components/templates/page/page-layout.module.scss +++ b/src/components/templates/page/page-layout.module.scss @@ -73,16 +73,11 @@ &__section { grid-column: 2; - - &:first-child { - margin: var(--spacing-md) 0 0; - } } &__title { width: fit-content; - margin-bottom: var(--spacing-md); - margin-inline: auto; + margin: var(--spacing-md) auto; } &__no-comments { -- cgit v1.2.3