Compare commits
2 Commits
eea19d3beb
...
c9df93709a
Author | SHA1 | Date |
---|---|---|
Jyotirmoy Bandyopadhayaya | c9df93709a | |
Jyotirmoy Bandyopadhayaya | 695acca74c |
|
@ -19,7 +19,12 @@ function Contact() {
|
||||||
}
|
}
|
||||||
function submitForm(evt) {
|
function submitForm(evt) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
axios.post("/contactme/postQuery", 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