Update contact.js
This commit is contained in:
parent
695acca74c
commit
c9df93709a
|
@ -19,7 +19,12 @@ function Contact() {
|
||||||
}
|
}
|
||||||
function submitForm(evt) {
|
function submitForm(evt) {
|
||||||
evt.preventDefault();
|
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);
|
setIsSubmitted(true);
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue