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;