Entrega do Desafio #2

Merged
anacarolinaduartecavalcante merged 81 commits from develop into main 2023-01-14 14:05:45 +00:00
Showing only changes of commit 778ad9558f - Show all commits

View File

@ -3,11 +3,17 @@ import schema from "../schema";
import styles from "../Main.module.scss";
const Contato = () => {
function onSubmit(_values, { resetForm }) {
resetForm({ values: "" });
}
return (
<div className={styles["Contato"]}>
<h2>Preencha o formulário</h2>
<Formik
validationSchema={schema}
onSubmit={onSubmit}
validateOnMount
initialValues={{
name: "",