Skip to content

Commit

Permalink
Re-add the unauth page
Browse files Browse the repository at this point in the history
  • Loading branch information
izzhafeez committed Sep 29, 2024
1 parent c0eaf24 commit 7f3dd9f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions frontend/src/app/(auth)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
"use client";

// import { useAuth } from "@/components/auth/AuthContext";
// import LandingPage from "./components/landing-page/LandingPage";
import { useAuth } from "@/components/auth/AuthContext";
import LandingPage from "./components/landing-page/LandingPage";
// import Dashboard from "./components/dashboard/Dashboard";
import LeetcodeDashboard from "./leetcode-dashboard/LeetcodeDashboard";

const Home = () => {
// const { token } = useAuth();
const { token } = useAuth();

// return (
// token ? <LeetcodeDashboard/> : <LandingPage/>
// );

return <LeetcodeDashboard />;
return (
token ? <LeetcodeDashboard/> : <LandingPage/>
);
};

export default Home;

0 comments on commit 7f3dd9f

Please sign in to comment.