From 7ba21a86fb4920acc04d6e06e1f6e98353dd90e3 Mon Sep 17 00:00:00 2001 From: Amanda Date: Fri, 20 Jan 2023 20:23:57 -0300 Subject: [PATCH] =?UTF-8?q?fix(date):=20corre=C3=A7=C3=A3o=20no=20minimo?= =?UTF-8?q?=20da=20data?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Main/Subject/Contato/schema/FormSchema.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Main/Subject/Contato/schema/FormSchema.ts b/src/components/Main/Subject/Contato/schema/FormSchema.ts index 113b247..6b91be0 100644 --- a/src/components/Main/Subject/Contato/schema/FormSchema.ts +++ b/src/components/Main/Subject/Contato/schema/FormSchema.ts @@ -10,9 +10,9 @@ const FormSchema = () => .min(14, "mínimo 14 caracteres") .required("*Campo Obrigatório"), data: Yup.date() - .min("01/01/1900") + .min("01.01.1900", "data mínima 01.01.1900") .max(new Date()) - .required("Campo obrigatório"), + .required("*Campo obrigatório"), tel: Yup.string().length(15).required("*Campo Obrigatório"), instagram: Yup.string(), acceptTerms: Yup.bool().oneOf([true], "*"),