From 3c87fd9a13a5ff761d4eb12a86d0ca60259d56c8 Mon Sep 17 00:00:00 2001 From: Lixian Zhou Date: Tue, 10 Mar 2026 15:26:16 -0400 Subject: [PATCH] fix --- client/src/components/admin/Permission.js | 2 +- client/src/components/home/menu.js | 36 +++++++++++------------ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/client/src/components/admin/Permission.js b/client/src/components/admin/Permission.js index ee514a8..a2d929a 100644 --- a/client/src/components/admin/Permission.js +++ b/client/src/components/admin/Permission.js @@ -7,7 +7,7 @@ const Permission = () => { const navigate = useNavigate(); const [employees, setEmployees] = useState([]); const [keyword, setKeyword] = useState(""); - const [showInactive, setShowInactive] = useState(true); + const [showInactive, setShowInactive] = useState(false); useEffect(() => { if (!AuthService.canViewEmployees() && !AuthService.canAddOrEditEmployees()) { diff --git a/client/src/components/home/menu.js b/client/src/components/home/menu.js index b16a050..d5db68c 100644 --- a/client/src/components/home/menu.js +++ b/client/src/components/home/menu.js @@ -198,6 +198,24 @@ const SideMenu = () => { } ] }, + { + name: 'Lobby', + icon: , + collapsed: false, + roleFunc: () => true, + subNavs: [ + { + name: 'Meal Status', + link: '/meal-status', + roleFunc: () => true + }, + { + name: 'Seating Chart', + link: '/seating', + roleFunc: () => true + } + ] + }, { name: 'Admin', icon: , @@ -217,24 +235,6 @@ const SideMenu = () => { roleFunc: () => AuthService.canViewEmployees() || AuthService.canAddOrEditEmployees() } ] - }, - { - name: 'Lobby', - icon: , - collapsed: false, - roleFunc: () => true, - subNavs: [ - { - name: 'Meal Status', - link: '/meal-status', - roleFunc: () => true - }, - { - name: 'Seating Chart', - link: '/seating', - roleFunc: () => true - } - ] } ]; const [collapse, setCollapse] = useState(false);