aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/forms/contact-form/contact-form.module.scss
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-11-04 17:14:25 +0100
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:15:27 +0100
commitc4a561c333f6f82678efcffef5ce3ed0f8e322f4 (patch)
treebe22fd77b2eb5d524ac1b967e71a2893ab7df400 /src/components/organisms/forms/contact-form/contact-form.module.scss
parentce4a18899f24ba89b63ef743476ec0dbf1999ecf (diff)
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
Diffstat (limited to 'src/components/organisms/forms/contact-form/contact-form.module.scss')
-rw-r--r--src/components/organisms/forms/contact-form/contact-form.module.scss8
1 files changed, 6 insertions, 2 deletions
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;
+}