From 2d36e0334a0942ddebe54048bf0568020e6e0c80 Mon Sep 17 00:00:00 2001 From: Alan Le Ruyet Date: Mon, 23 Dec 2024 15:31:21 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20t=C3=A9l=C3=A9phone=20optionnel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/components/IntentionForm.tsx/IntentionForm.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ui/components/IntentionForm.tsx/IntentionForm.tsx b/ui/components/IntentionForm.tsx/IntentionForm.tsx index 259c331cf..6014c2cd2 100644 --- a/ui/components/IntentionForm.tsx/IntentionForm.tsx +++ b/ui/components/IntentionForm.tsx/IntentionForm.tsx @@ -20,7 +20,7 @@ const textAreaProperties = { background: "grey.200", borderRadius: "4px 4px 0px 0px", width: "100%", - height: "110px", + height: "140px", paddingLeft: 4, borderBottom: "2px solid", } @@ -149,11 +149,7 @@ export const IntentionForm = ({ company_recruitment_intention, id, token }: { co validationSchema={Yup.object().shape({ company_feedback: Yup.string().nullable().required("Veuillez remplir le message"), email: isRefusedState ? Yup.string() : Yup.string().email("Adresse e-mail invalide").required("L'adresse e-mail est obligatoire"), - phone: isRefusedState - ? Yup.string() - : Yup.string() - .matches(/^[0-9]{10}$/, "Le numéro de téléphone doit avoir exactement 10 chiffres") - .required("Le téléphone est obligatoire"), + phone: isRefusedState ? Yup.string() : Yup.string().matches(/^[0-9]{10}$/, "Le numéro de téléphone doit avoir exactement 10 chiffres"), })} onSubmit={(formikValues) => submitForm(formikValues)} > @@ -189,7 +185,7 @@ export const IntentionForm = ({ company_recruitment_intention, id, token }: { co - +