File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
1
"use client" ;
2
2
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" ;
5
5
// import Dashboard from "./components/dashboard/Dashboard";
6
6
import LeetcodeDashboard from "./leetcode-dashboard/LeetcodeDashboard" ;
7
7
8
8
const Home = ( ) => {
9
- // const { token } = useAuth();
9
+ const { token } = useAuth ( ) ;
10
10
11
- // return (
12
- // token ? <LeetcodeDashboard/> : <LandingPage/>
13
- // );
14
-
15
- return < LeetcodeDashboard /> ;
11
+ return (
12
+ token ? < LeetcodeDashboard /> : < LandingPage />
13
+ ) ;
16
14
} ;
17
15
18
16
export default Home ;
You can’t perform that action at this time.
0 commit comments