diff --git a/packages/web/src/components/layout/main-layout.tsx b/packages/web/src/components/layout/main-layout.tsx index 3bf3e96..b59a326 100644 --- a/packages/web/src/components/layout/main-layout.tsx +++ b/packages/web/src/components/layout/main-layout.tsx @@ -28,10 +28,12 @@ function MainContent({ children, showSidebar, collapsed, + isAdmin, }: { children: React.ReactNode; showSidebar: boolean; collapsed: boolean; + isAdmin: boolean; }) { return ( - {children} + {!isAdmin && } + + {children} + ); @@ -95,7 +100,6 @@ export function MainLayout({ 본문으로 바로가기 - {!isAdmin && } {showSidebar && ( @@ -105,7 +109,7 @@ export function MainLayout({ onToggleCollapsed={handleToggleCollapsed} /> )} - + {children}