forked from M3-Academy/desafio-react-e-typescript
development #26
@ -77,6 +77,7 @@ const Contact = () => {
|
||||
const handleFormikSubmit = (values: FormikValues, { resetForm }: any) => {
|
||||
resetForm({ values: "" });
|
||||
setSuccessMessage(true);
|
||||
setTimeout(() => setSuccessMessage(false), 3000);
|
||||
};
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user