From e0548f552efeb63f52a8a04c1ab5e926082edd2e Mon Sep 17 00:00:00 2001 From: Sumin Hwang <163857590+tnals0924@users.noreply.github.com> Date: Tue, 3 Mar 2026 02:10:43 +0900 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=EA=B7=BC=EB=AC=B4=EC=9E=90,=20?= =?UTF-8?q?=EC=B4=9D=EB=AC=B4=EB=B6=80=EB=8F=84=20=EA=B4=80=EB=A6=AC?= =?UTF-8?q?=EC=9E=90=20=EB=8C=80=EC=8B=9C=EB=B3=B4=EB=93=9C=EB=A1=9C=20?= =?UTF-8?q?=EC=9D=B4=EB=8F=99=ED=95=A0=20=EC=88=98=20=EC=9E=88=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/mobile/SidebarMenu/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/mobile/SidebarMenu/index.tsx b/src/components/mobile/SidebarMenu/index.tsx index 43004ac..3ae859b 100644 --- a/src/components/mobile/SidebarMenu/index.tsx +++ b/src/components/mobile/SidebarMenu/index.tsx @@ -18,6 +18,8 @@ interface SidebarProps { role?: string; } +const adminRole = ['GA', 'WORKER', 'ADMIN']; + const menuItems = [ { icon: IconRentalList, label: '복지 물품 목록', href: '/mobile/main' }, { icon: IconRentalHistory, label: '대여기록', href: '/mobile/history' }, @@ -100,7 +102,7 @@ export default function Sidebar({
{/* 관리자 메뉴 */} - {role === 'ADMIN' && ( + {adminRole.includes(role) && ( <>