Skip to content

Commit 7f3dd9f

Browse files
committed
Re-add the unauth page
1 parent c0eaf24 commit 7f3dd9f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

frontend/src/app/(auth)/page.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
"use client";
22

3-
// import { useAuth } from "@/components/auth/AuthContext";
4-
// import LandingPage from "./components/landing-page/LandingPage";
3+
import { useAuth } from "@/components/auth/AuthContext";
4+
import LandingPage from "./components/landing-page/LandingPage";
55
// import Dashboard from "./components/dashboard/Dashboard";
66
import LeetcodeDashboard from "./leetcode-dashboard/LeetcodeDashboard";
77

88
const Home = () => {
9-
// const { token } = useAuth();
9+
const { token } = useAuth();
1010

11-
// return (
12-
// token ? <LeetcodeDashboard/> : <LandingPage/>
13-
// );
14-
15-
return <LeetcodeDashboard />;
11+
return (
12+
token ? <LeetcodeDashboard/> : <LandingPage/>
13+
);
1614
};
1715

1816
export default Home;

0 commit comments

Comments
 (0)