From 33365affa2dfce4fe1709ebb767df17f4d0db899 Mon Sep 17 00:00:00 2001 From: Maulana Sodiqin Date: Wed, 26 Nov 2025 14:22:01 +0700 Subject: [PATCH] fix(hackathon): replace top navbar with sidebar on team and user detail pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update teams/[teamId]/layout.tsx to use Sidebar component - Update users/[userId]/layout.tsx to use Sidebar component - Now matches dashboard layout with sidebar navigation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../src/app/teams/[teamId]/layout.tsx | 36 +++++++++++++------ .../src/app/users/[userId]/layout.tsx | 36 +++++++++++++------ 2 files changed, 52 insertions(+), 20 deletions(-) diff --git a/apps/hackathon/src/app/teams/[teamId]/layout.tsx b/apps/hackathon/src/app/teams/[teamId]/layout.tsx index b8cc70d..070436d 100644 --- a/apps/hackathon/src/app/teams/[teamId]/layout.tsx +++ b/apps/hackathon/src/app/teams/[teamId]/layout.tsx @@ -1,18 +1,34 @@ -import { FC, ReactNode } from 'react'; +import { FC, ReactElement, useState } from 'react'; import { Outlet } from 'react-router'; -import { Navigation } from '../../../components/navigation'; +import { Sidebar } from '../../../components/sidebar'; -interface TeamLayoutProps { - children?: ReactNode; -} +const TeamDetailLayout: FC = (): ReactElement => { + const [sidebarOpen, setSidebarOpen] = useState(false); -export const TeamLayout: FC = () => { return ( -
- - +
+ setSidebarOpen(false)} /> + +
+ {/* Mobile Header with Hamburger */} +
+ +

🏆 Hackathon

+
+ +
+ +
+
); }; -export default TeamLayout; +export default TeamDetailLayout; diff --git a/apps/hackathon/src/app/users/[userId]/layout.tsx b/apps/hackathon/src/app/users/[userId]/layout.tsx index 5b0309d..6ffa5f1 100644 --- a/apps/hackathon/src/app/users/[userId]/layout.tsx +++ b/apps/hackathon/src/app/users/[userId]/layout.tsx @@ -1,18 +1,34 @@ -import { FC, ReactNode } from 'react'; +import { FC, ReactElement, useState } from 'react'; import { Outlet } from 'react-router'; -import { Navigation } from '../../../components/navigation'; +import { Sidebar } from '../../../components/sidebar'; -interface UserLayoutProps { - children?: ReactNode; -} +const UserDetailLayout: FC = (): ReactElement => { + const [sidebarOpen, setSidebarOpen] = useState(false); -export const UserLayout: FC = () => { return ( -
- - +
+ setSidebarOpen(false)} /> + +
+ {/* Mobile Header with Hamburger */} +
+ +

🏆 Hackathon

+
+ +
+ +
+
); }; -export default UserLayout; +export default UserDetailLayout;