Update contact.js

This commit is contained in:
Jyotirmoy Bandyopadhayaya 2024-04-26 16:22:16 +05:30 committed by GitHub
parent 695acca74c
commit c9df93709a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -19,7 +19,12 @@ function Contact() {
}
function submitForm(evt) {
evt.preventDefault();
axios.post("/api/contact", input);
axios.post("/api/contact", {
name: input.senderName,
email: input.email,
subject: input.topic,
message: input.message
});
setIsSubmitted(true);
}
return (