mailer rest form and disable send

This commit is contained in:
Owen Rees
2023-06-21 15:39:25 +02:00
parent b323d07d12
commit 65532531a0
10 changed files with 116 additions and 67 deletions
+6 -1
View File
@@ -17,7 +17,12 @@ const useContactForm = () => {
};
});
};
return { values, handleChange };
const resetForm = () => {
setValues({ email: "", subject: "", message: "" });
};
return { values, handleChange, resetForm };
};
export default useContactForm;