From c4a561c333f6f82678efcffef5ce3ed0f8e322f4 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sat, 4 Nov 2023 17:14:25 +0100 Subject: refactor(components): rewrite ContactForm component * remove `Notice` props to handle it directly inside the form * replace `sendMail` prop with `onSubmit` prop * use `useForm` hook to handle fields --- .../organisms/forms/contact-form/contact-form.module.scss | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/components/organisms/forms/contact-form/contact-form.module.scss') diff --git a/src/components/organisms/forms/contact-form/contact-form.module.scss b/src/components/organisms/forms/contact-form/contact-form.module.scss index c106fb1..e222d40 100644 --- a/src/components/organisms/forms/contact-form/contact-form.module.scss +++ b/src/components/organisms/forms/contact-form/contact-form.module.scss @@ -9,7 +9,11 @@ width: 100%; } -.button { - display: block; +.btn { + width: fit-content; margin: var(--spacing-sm) auto 0; } + +.spinner { + margin: var(--spacing-sm) auto; +} -- cgit v1.2.3