Refactor: 작업 제거
This commit is contained in:
parent
d79bf97406
commit
78496193c7
@ -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 (
|
||||||
|
Loading…
Reference in New Issue
Block a user