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!} -
- )} -
- ); -};