Skip to content

Commit

Permalink
add success message pop up
Browse files Browse the repository at this point in the history
  • Loading branch information
aasmal97 committed Jun 4, 2023
1 parent 440c746 commit 5e81af6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/contactPage/ContactPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ const ContactPage = () => {
const { status, callFunction } = useLoadingState({
asyncFunc: submitFormFunc,
});
const [successMessage, setSuccessMessage] = useState<{
err: boolean;
message: string;
}>({
err: false,
message: "",
});
const onSubmit = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
if (status === "loading") return;
Expand Down Expand Up @@ -163,7 +170,7 @@ const ContactPage = () => {
<div
style={{
position: "absolute",
top:0,
top: 0,
left: 0,
width: "100%",
height: "100%",
Expand Down

0 comments on commit 5e81af6

Please sign in to comment.