Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
MABEY ITS FIXED
Browse files Browse the repository at this point in the history
  • Loading branch information
Husky-Devel committed Jan 1, 2024
1 parent cfbdb81 commit 5a2f237
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions components/contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ const ContactForm = () => {
});
const [pending, setPending] = useState(false);

const handleChange = (event: ChangeEvent<HTMLTextAreaElement | HTMLInputElement>) => {
const { name, value } = event.target;
setFormData((prevFormData) => ({
...prevFormData,
[name]: value
}));
};

const handleSubmit = async (event: FormEvent<HTMLFormElement>) => {
event.preventDefault();
setPending(true);
Expand Down Expand Up @@ -36,14 +44,6 @@ const ContactForm = () => {
}
};

const handleChange = (event: ChangeEvent<HTMLInputElement>) => {
const { name, value } = event.target;
setFormData((prevFormData) => ({
...prevFormData,
[name]: value
}));
};

return (
<form
className="mt-10 flex flex-col dark:text-black"
Expand Down

0 comments on commit 5a2f237

Please sign in to comment.