This commit is contained in:
@@ -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()) {
|
||||
|
||||
@@ -198,6 +198,24 @@ const SideMenu = () => {
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'Lobby',
|
||||
icon: <Tools color="#777" size={14}/>,
|
||||
collapsed: false,
|
||||
roleFunc: () => true,
|
||||
subNavs: [
|
||||
{
|
||||
name: 'Meal Status',
|
||||
link: '/meal-status',
|
||||
roleFunc: () => true
|
||||
},
|
||||
{
|
||||
name: 'Seating Chart',
|
||||
link: '/seating',
|
||||
roleFunc: () => true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'Admin',
|
||||
icon: <Tools color="#777" size={14}/>,
|
||||
@@ -217,24 +235,6 @@ const SideMenu = () => {
|
||||
roleFunc: () => AuthService.canViewEmployees() || AuthService.canAddOrEditEmployees()
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'Lobby',
|
||||
icon: <Tools color="#777" size={14}/>,
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user