From 78496193c70378860d1d937a23fd0db513bd3956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=ED=98=84=EC=A1=B0?= Date: Mon, 9 Sep 2024 17:26:15 +0900 Subject: [PATCH] =?UTF-8?q?Refactor:=20=EC=9E=91=EC=97=85=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/AdminMenuSidebar/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/AdminMenuSidebar/index.tsx b/frontend/src/components/AdminMenuSidebar/index.tsx index e3fcac6..07d3bf8 100644 --- a/frontend/src/components/AdminMenuSidebar/index.tsx +++ b/frontend/src/components/AdminMenuSidebar/index.tsx @@ -1,13 +1,13 @@ -import { useNavigate } from 'react-router-dom'; +import { useNavigate, useParams } from 'react-router-dom'; import { cn } from '@/lib/utils'; export default function AdminMenuSidebar() { const navigate = useNavigate(); + const { id } = useParams<{ id: string }>(); const menuItems = [ - { label: '작업', path: '/admin/tasks' }, - { label: '리뷰', path: '/admin/reviews' }, - { label: '멤버 관리', path: '/admin/members' }, + { label: '리뷰', path: `/admin/${id}/review` }, + { label: '멤버 관리', path: `/admin/${id}/members` }, ]; return (