From 679c3a973528878623024723900e2a4df3f27c2c Mon Sep 17 00:00:00 2001 From: danielmoliaribarbosa Date: Fri, 20 Jan 2023 04:14:48 -0300 Subject: [PATCH] =?UTF-8?q?feature(institucionalSASS):=20Implementa=20SASS?= =?UTF-8?q?=20da=20p=C3=A1gina=20institucional=20responsivo.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ContactForm.tsx | 133 --------------------------------- 1 file changed, 133 deletions(-) delete mode 100644 src/components/ContactForm.tsx diff --git a/src/components/ContactForm.tsx b/src/components/ContactForm.tsx deleted file mode 100644 index 4378ee6..0000000 --- a/src/components/ContactForm.tsx +++ /dev/null @@ -1,133 +0,0 @@ -import { Formik, Form, Field, ErrorMessage } from "formik"; -import FormSchema from "./schema/FormSchema"; -import { useState } from "react"; - -interface IFormikValues { - name: string; - email: string; - cpf: string; - data: string; - telefone: string; - instagram?: string; - checkbox: boolean; -} - -const initialValues = { - name: "", - email: "", - cpf: "", - data: "", - telefone: "", - instagram: "", - checkbox: false, -}; - -export const ContactForm = () => { - const [isSubmited, setIsSubmited] = useState(false); - const formSubmit = (values: IFormikValues) => { - setIsSubmited(true); - }; - return ( - - {({ errors, touched, isValid, validateForm }) => ( -
-
- - - - - -
- -
- - - - - -
- -
- - - - - -
- -
- - - - - -
- -
- - - - - -
- -
- - - - - -
- -
- - - - - -
- - {isSubmited && *Formulário enviado com sucesso!} -
- )} -
- ); -}; -- 2.34.1