From f2be002df3b13254a5b549dd1589089545c53f02 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 10 Feb 2022 16:35:08 +0100 Subject: 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. --- src/components/Form/Input/Input.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/Form/Input/Input.tsx') 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 = ( { -- cgit v1.2.3