diff --git a/app/(main)/layout.tsx b/app/(main)/layout.tsx index 1e6cd5e..55e50ff 100644 --- a/app/(main)/layout.tsx +++ b/app/(main)/layout.tsx @@ -1,5 +1,5 @@ import { Header } from "@/features/layout/components/header"; -import { Sidebar } from "@/features/layout/components/sidebar"; +import { MobileBottomNav, Sidebar } from "@/features/layout/components/sidebar"; import { createClient } from "@/utils/supabase/server"; export default async function MainLayout({ @@ -17,8 +17,9 @@ export default async function MainLayout({
-
{children}
+
{children}
+ ); } diff --git a/features/layout/components/sidebar.tsx b/features/layout/components/sidebar.tsx index a03be10..19136da 100644 --- a/features/layout/components/sidebar.tsx +++ b/features/layout/components/sidebar.tsx @@ -9,43 +9,54 @@ import { MenuItem } from "../types"; const MENU_ITEMS: MenuItem[] = [ { title: "대시보드", - href: "/", + href: "/dashboard", icon: Home, variant: "default", matchExact: true, + showInBottomNav: true, }, { title: "자동매매", href: "/trade", icon: BarChart2, variant: "ghost", + badge: "LIVE", + showInBottomNav: true, }, { title: "자산현황", href: "/assets", icon: Wallet, variant: "ghost", + showInBottomNav: true, }, { title: "프로필", href: "/profile", icon: User, variant: "ghost", + showInBottomNav: false, }, { title: "설정", href: "/settings", icon: Settings, variant: "ghost", + showInBottomNav: true, }, ]; +/** + * @description 메인 좌측 사이드바(데스크탑): 기본 축소 상태에서 hover/focus 시 확장됩니다. + * @see features/layout/components/sidebar.tsx MENU_ITEMS 한 곳에서 메뉴/배지/모바일 탭 구성을 함께 관리합니다. + */ export function Sidebar() { const pathname = usePathname(); return ( -