feature/challenge #1

Merged
BernardoWaldhelm merged 38 commits from feature/challenge into main 2023-01-15 15:25:18 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit ef6ea802f8 - Show all commits

View File

@ -1,10 +1,10 @@
import { Link } from "react-router-dom";
import { Formik, Form, Field, ErrorMessage } from "formik";
import MaskedInput from "react-text-mask";
import { useState } from "react";
import FormSchema from "../../../schema/FormSchema";
import styles from "./FaleConosco.module.scss";
import { useState } from "react";
interface IFormikValues {
name: string;

View File

@ -5,7 +5,7 @@ export default Yup.object().shape({
name: Yup.string().required("*Campo Obrigatório").min(3, "*No mínimo 3 digitos"),
email: Yup.string().email("*Email inválido").required("*Campo Obrigatório"),
cpf: Yup.string().test((value:any) => cpf.isValid(value)).required("*Campo Obrigatório"),
birthDate: Yup.date().max(new Date().toLocaleDateString(), "*Data inválida").required("*Campo Obrigatório"),
birthDate: Yup.date().max(new Date(), "*Data inválida!").required("*Campo Obrigatório"),
celPhone: Yup.string().required('*Campo Obrigatório'),
instagram: Yup.string(),
acceptTerms: Yup.boolean().oneOf([true], '*'),