Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
DOCKER_IMAGE: ${{ secrets.DOCKER_USERNAME }}/billilge-client
CAPROVER_APP: app
CAPROVER_APP: www

jobs:
build-and-deploy:
Expand Down
6 changes: 4 additions & 2 deletions src/components/mobile/SidebarMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand All @@ -38,7 +40,7 @@ const adminItems = [
{
icon: IconAdminHomepage,
label: '관리자 홈페이지',
href: 'https://www.billilge.site/desktop/login',
href: 'https://admin.billilge.site/login',
},
];

Expand Down Expand Up @@ -100,7 +102,7 @@ export default function Sidebar({
<div className="my-5 border-t border-gray-border" />

{/* 관리자 메뉴 */}
{role === 'ADMIN' && (
{adminRole.includes(role) && (
<>
<ul className="text-body-2-normal_semi font-semibold text-black-primary">
{adminItems.map(({ icon: Icon, label, href }) => {
Expand Down
Loading