Skip to content

Commit cb7e024

Browse files
authored
Merge pull request #570 from abhisekguddul/main
contributors page and scroll bar
2 parents 31eb658 + f452d6f commit cb7e024

File tree

3 files changed

+657
-5
lines changed

3 files changed

+657
-5
lines changed

DevElevate/Client/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { GlobalProvider, useGlobalState } from "./contexts/GlobalContext";
1010
import { NotificationProvider } from "./contexts/NotificationContext";
1111
import { AdminProvider } from "./contexts/AdminContext";
1212
import { AppProvider } from "./contexts/AppContext";
13-
import Leaderboard from "./pages/Leaderboard/Leaderboard";
13+
import ContributorsPageClient from "./pages/Leaderboard/ContributorsPageClient";
1414
import { SocketProvider } from "./contexts/SocketContext";
1515

1616
import Footer from "./components/Layout/Footer";
@@ -179,7 +179,7 @@ const AppContent = () => {
179179
<Route path="profile" element={<UserProfile />} />
180180
<Route path="settings/*" element={<UserSettings />} />
181181
<Route path="help-center" element={<HelpCenter />} />
182-
<Route path="leaderboard" element={<Leaderboard />} />
182+
<Route path="leaderboard" element={<ContributorsPageClient />} />
183183
<Route path="search" element={<SearchPage />} />
184184
<Route
185185
path="*"

DevElevate/Client/src/components/Layout/Sidebar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const Sidebar: React.FC = () => {
3333
{ path: "/roadmap", icon: MdMap, label: "Road Map" },
3434
{ path: "/notes", icon: FaRegStickyNote, label: "Notes" },
3535
{ path: "/calendar", icon: FiCalendar, label: "Calendar" },
36-
{ path: "/leaderboard", icon: FiTrendingUp, label: "Leaderboard" },
36+
{ path: "/leaderboard", icon: FiTrendingUp, label: "Contributors" },
3737
];
3838

3939
const isActive = (path: string) => location.pathname === path;
@@ -47,14 +47,14 @@ const Sidebar: React.FC = () => {
4747
<>
4848
{/* Sidebar */}
4949
<div
50-
className={`fixed top-0 h-full left-0 w-64 border-r backdrop-blur-md transition-colors duration-200 ${state.darkMode
50+
className={`fixed top-0 left-0 w-64 h-screen overflow-y-auto border-r backdrop-blur-md transition-colors duration-200 ${state.darkMode
5151
? "bg-gray-900/90 border-gray-800"
5252
: "bg-white border-gray-200"
5353
}`}
5454
>
5555
<div className="flex flex-col h-full p-4 space-y-6">
5656
{/* Navigation Items */}
57-
<div className="flex flex-col space-y-1">
57+
<div className="flex flex-col space-y-1 flex-1 overflow-y-auto pb-20 pr-2 overscroll-contain">
5858
{navItems.map((item) => {
5959
const Icon = item.icon;
6060
return (

0 commit comments

Comments
 (0)