|
3 | 3 | import { LandingPage } from "@/components/LandingPage";
|
4 | 4 | import { useEffect, useState } from "react";
|
5 | 5 | import { useRouter, usePathname } from "next/navigation";
|
| 6 | +import ComingSoon from "@/components/ComingSoon"; |
6 | 7 |
|
7 | 8 | export default function Page() {
|
8 | 9 | const [emailRoute, setEmailRoute] = useState("");
|
9 | 10 |
|
10 | 11 | const router = useRouter();
|
11 | 12 | const pathname = usePathname();
|
12 | 13 |
|
| 14 | + return <ComingSoon />; |
| 15 | + |
| 16 | + //! This is the original code |
13 | 17 | /*
|
14 | 18 | * This hook handle routing to the correct page after arriving from an email link
|
15 | 19 | */
|
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 | + // }, []); |
26 | 30 |
|
27 |
| - if (emailRoute) return <></>; |
28 |
| - return <LandingPage />; |
| 31 | + // if (emailRoute) return <></>; |
| 32 | + // return <LandingPage />; |
29 | 33 | }
|
0 commit comments