From 7ba559e319e5320b07a2741a9c4d933c010ee65f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=B5=E1=84=90=E1=85=A2=E1=84=92=E1=85=AE?= =?UTF-8?q?=E1=86=AB?= Date: Wed, 24 Jul 2024 03:50:32 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20TopNav=20navigate=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HDesign/package-lock.json | 4 ++-- HDesign/package.json | 2 +- HDesign/src/components/TopNav/TopNav.tsx | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/HDesign/package-lock.json b/HDesign/package-lock.json index 866e29daf..d82b051ee 100644 --- a/HDesign/package-lock.json +++ b/HDesign/package-lock.json @@ -1,12 +1,12 @@ { "name": "haengdong-design", - "version": "0.1.18", + "version": "0.1.19", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "haengdong-design", - "version": "0.1.18", + "version": "0.1.19", "license": "ISC", "dependencies": { "@emotion/react": "^11.11.4", diff --git a/HDesign/package.json b/HDesign/package.json index f4670e509..2724cfed8 100644 --- a/HDesign/package.json +++ b/HDesign/package.json @@ -1,6 +1,6 @@ { "name": "haengdong-design", - "version": "0.1.18", + "version": "0.1.19", "description": "", "main": "./dist/index.js", "module": "./dist/index.js", diff --git a/HDesign/src/components/TopNav/TopNav.tsx b/HDesign/src/components/TopNav/TopNav.tsx index 1f97ad3c1..b3b2af568 100644 --- a/HDesign/src/components/TopNav/TopNav.tsx +++ b/HDesign/src/components/TopNav/TopNav.tsx @@ -11,15 +11,14 @@ import {useEffect, useState} from 'react'; const TopNav = ({navType}: TopNavProps) => { const [nav, setNav] = useState('홈'); const navigate = useNavigate(); - const location = useLocation(); useEffect(() => { navigate(PATH_TABLE[nav]); }, [nav]); const PATH_TABLE: Record = { - 홈: '/', - 관리: '/admin', + 홈: './', + 관리: './admin', }; const TopNavByType = () => {