diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-10 16:35:08 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-02-10 16:35:08 +0100 |
| commit | f2be002df3b13254a5b549dd1589089545c53f02 (patch) | |
| tree | 1d057bb3941769df6af99066cecbd5d563676ea3 /src/components | |
| parent | 74df20972a7e9155fadb1d18aad260c0cd9959a9 (diff) | |
chore: improve contact form behavior
* The status was not visile in top of the form, so I moved it under the
submit button.
* It was possible to send an empty form.
* The input type for email should be email instead of text.
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Form/Input/Input.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Form/Input/Input.tsx b/src/components/Form/Input/Input.tsx index 16cb854..986ea63 100644 --- a/src/components/Form/Input/Input.tsx +++ b/src/components/Form/Input/Input.tsx @@ -1,7 +1,7 @@ import { ChangeEvent, ForwardedRef, forwardRef, SetStateAction } from 'react'; import styles from '../Form.module.scss'; -type InputType = 'text' | 'number' | 'search'; +type InputType = 'text' | 'email' | 'number' | 'search'; const Input = ( { |
