Skip to content

Commit 99782c1

Browse files
committed
Disable history page for now
1 parent 20677ef commit 99782c1

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

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

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,6 @@ const SidebarMenuItem = ({
3535
};
3636

3737
const sidebarItems: SidebarMenuItemProps[] = [
38-
{
39-
menuLabel: "Home",
40-
menuIcon: MdHomeFilled,
41-
linksTo: "/",
42-
},
43-
{
44-
menuLabel: "Profile",
45-
menuIcon: CgProfile,
46-
linksTo: "/profile",
47-
},
4838
{
4939
menuLabel: "Find Match",
5040
menuIcon: IoMdSearch,
@@ -55,6 +45,11 @@ const sidebarItems: SidebarMenuItemProps[] = [
5545
menuIcon: FaCode,
5646
linksTo: "/leetcode-dashboard",
5747
},
48+
{
49+
menuLabel: "Profile",
50+
menuIcon: CgProfile,
51+
linksTo: "/profile",
52+
},
5853
];
5954

6055
const menuItemStyles: MenuItemStyles = {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import Navbar from "@/app/(auth)/home/components/navbar/Navbar";
44
import LandingPage from "@/app/(auth)/home/components/landing-page/LandingPage";
55
import { getToken } from "@/api/user";
6-
import AuthDashboard from "./components/dashboard/Dashboard";
76
import { useEffect, useState } from "react";
7+
import FindPeer from "@/app/(auth)/match/page";
88

99
const Home = () => {
1010
const [userToken, setUserToken] = useState<string | null>(null);
@@ -16,7 +16,7 @@ const Home = () => {
1616
}, []);
1717

1818
return !!userToken ? (
19-
<AuthDashboard />
19+
<FindPeer />
2020
) : (
2121
<>
2222
<Navbar />

0 commit comments

Comments
 (0)