Refactor: 작업 제거

This commit is contained in:
정현조 2024-09-09 17:26:15 +09:00
parent d79bf97406
commit 78496193c7

View File

@ -1,13 +1,13 @@
import { useNavigate } from 'react-router-dom'; import { useNavigate, useParams } from 'react-router-dom';
import { cn } from '@/lib/utils'; import { cn } from '@/lib/utils';
export default function AdminMenuSidebar() { export default function AdminMenuSidebar() {
const navigate = useNavigate(); const navigate = useNavigate();
const { id } = useParams<{ id: string }>();
const menuItems = [ const menuItems = [
{ label: '작업', path: '/admin/tasks' }, { label: '리뷰', path: `/admin/${id}/review` },
{ label: '리뷰', path: '/admin/reviews' }, { label: '멤버 관리', path: `/admin/${id}/members` },
{ label: '멤버 관리', path: '/admin/members' },
]; ];
return ( return (