From fdb757ddc1cf54fdd84f06c99d94d4b4d507dd72 Mon Sep 17 00:00:00 2001 From: Andy Hong Date: Wed, 31 Dec 2025 04:19:06 +0900 Subject: [PATCH 01/16] =?UTF-8?q?fix:=20=EB=B0=9C=ED=91=9C=20ID=20?= =?UTF-8?q?=EA=B8=B0=EB=B0=98=20=EB=9D=BC=EC=9A=B0=ED=8C=85=20=EA=B5=AC?= =?UTF-8?q?=EC=A1=B0=EB=A1=9C=20=EB=B3=80=EA=B2=BD=20(#14)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 4 ++-- src/components/layout/Gnb.tsx | 10 ++++++---- src/constants/navigation.ts | 30 ++++++++++++++++++++++++------ src/main.tsx | 10 ++++++---- 4 files changed, 38 insertions(+), 16 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index b09fa42b..c248a7ed 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2,11 +2,11 @@ import { Outlet, useLocation } from 'react-router-dom'; import './App.css'; import { Gnb, Layout } from './components/layout'; -import { DEFAULT_TAB, PATH_TO_TAB } from './constants/navigation'; +import { getTabFromPathname } from './constants/navigation'; function App() { const location = useLocation(); - const activeTab = PATH_TO_TAB[location.pathname] ?? DEFAULT_TAB; + const activeTab = getTabFromPathname(location.pathname); return ( (); + return (