From a965d95a24c9232d646ce80be1e89652b204af91 Mon Sep 17 00:00:00 2001 From: gahusb Date: Tue, 28 Apr 2026 08:07:08 +0900 Subject: [PATCH] =?UTF-8?q?refactor(shell):=20DashboardShell=20=EC=82=AC?= =?UTF-8?q?=EC=9D=B4=EB=93=9C=EB=B0=94=20=EB=B6=84=EA=B8=B0=20=ED=86=B5?= =?UTF-8?q?=EC=A7=B8=20=EC=A0=9C=EA=B1=B0=20=E2=86=92=20PublicShell=20?= =?UTF-8?q?=ED=8F=B4=EB=B0=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mypage가 PublicShell + TopNav를 사용하도록 라우팅 단순화: - SIDEBAR_PATHS 상수 + Sidebar import + useSidebar 분기 + 모바일 top bar + 사이드바 안의 카카오 버튼 + 사업자 정보 footer + style 블록 모두 삭제 - Standalone 분기(/login·/signup·/admin)는 그대로 유지 - 카카오 버튼은 PublicShell로 이미 이동(Task 3) - 사업자 정보 footer는 PublicShell footer가 동일 정보 보유 Sidebar.tsx 자체는 다음 커밋(Task 7)에서 삭제 — 사용처 0이 됨. Co-Authored-By: Claude Opus 4.7 (1M context) --- app/components/DashboardShell.tsx | 113 +----------------------------- 1 file changed, 1 insertion(+), 112 deletions(-) diff --git a/app/components/DashboardShell.tsx b/app/components/DashboardShell.tsx index 20cdcf4..1f51401 100644 --- a/app/components/DashboardShell.tsx +++ b/app/components/DashboardShell.tsx @@ -1,129 +1,18 @@ 'use client'; -import { useState } from 'react'; import { usePathname } from 'next/navigation'; -import Sidebar from './Sidebar'; import PublicShell from './PublicShell'; const STANDALONE_PATHS = ['/login', '/signup', '/admin']; -const SIDEBAR_PATHS = ['/mypage']; export default function DashboardShell({ children }: { children: React.ReactNode }) { - const [sidebarOpen, setSidebarOpen] = useState(false); const pathname = usePathname(); const isStandalone = STANDALONE_PATHS.some((p) => pathname.startsWith(p)); - const useSidebar = SIDEBAR_PATHS.some((p) => pathname.startsWith(p)); if (isStandalone) { return <>{children}; } - if (!useSidebar) { - return {children}; - } - - return ( -
- setSidebarOpen(false)} /> - -
- {/* Mobile top bar */} -
- -
-
- 쟁 -
- 쟁승메이드 -
-
-
- - {/* Main scrollable content */} -
- {children} - {/* 사업자 정보 푸터 */} -
-
-

쟁승메이드

-
- 대표자: 박재오 - 사업자등록번호: 267-53-00822 - 주소: 서울시 동작구 여의대방로22아길 22, 1동 109호 - 전화: 010-3907-1392 - 이메일: bgg8988@gmail.com -
- -

© 2026 쟁승메이드. All rights reserved.

-
-
-
-
- - {/* 카카오 오픈채팅 플로팅 버튼 */} - - - - - 1:1 상담 - - - -
- ); + return {children}; }