-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Contentlayer build TS checks, contact page draft
- Loading branch information
Kawtar Choubari
committed
Sep 6, 2023
1 parent
1927606
commit f7216d5
Showing
6 changed files
with
4,025 additions
and
3,160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,11 +30,11 @@ export default function Contact() { | |
}); | ||
console.log("res ", res); | ||
const resBody = await res.json(); | ||
// console.log("resBody ", resBody); | ||
if (res.status == 200) { | ||
console.log("resBody ", resBody); | ||
if (resBody.id) { | ||
alert("Your message has been sent successfully"); | ||
} else { | ||
alert("Error, try again!"); | ||
alert("Error, try again! or reach me at [email protected]"); | ||
} | ||
clearForm(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.