Skip to content

Commit 1a45fa7

Browse files
committed
Apply coming soon to main page
1 parent 38a706f commit 1a45fa7

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

app/page.tsx

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,31 @@
33
import { LandingPage } from "@/components/LandingPage";
44
import { useEffect, useState } from "react";
55
import { useRouter, usePathname } from "next/navigation";
6+
import ComingSoon from "@/components/ComingSoon";
67

78
export default function Page() {
89
const [emailRoute, setEmailRoute] = useState("");
910

1011
const router = useRouter();
1112
const pathname = usePathname();
1213

14+
return <ComingSoon />;
15+
16+
//! This is the original code
1317
/*
1418
* This hook handle routing to the correct page after arriving from an email link
1519
*/
16-
useEffect(() => {
17-
if (pathname?.startsWith("/member-invite")) {
18-
setEmailRoute("member-invite");
19-
router.push("/member-invite");
20-
}
21-
if (pathname?.startsWith("/confirm-email")) {
22-
setEmailRoute("confirm-email");
23-
router.push("/confirm-email");
24-
}
25-
}, []);
20+
// useEffect(() => {
21+
// if (pathname?.startsWith("/member-invite")) {
22+
// setEmailRoute("member-invite");
23+
// router.push("/member-invite");
24+
// }
25+
// if (pathname?.startsWith("/confirm-email")) {
26+
// setEmailRoute("confirm-email");
27+
// router.push("/confirm-email");
28+
// }
29+
// }, []);
2630

27-
if (emailRoute) return <></>;
28-
return <LandingPage />;
31+
// if (emailRoute) return <></>;
32+
// return <LandingPage />;
2933
}

0 commit comments

Comments
 (0)