feat: update shift management with jadwal shift integration and improved error handling
This commit is contained in:
@@ -130,16 +130,20 @@ const allItems = [
|
||||
</Link>
|
||||
),
|
||||
},
|
||||
{
|
||||
key: 'jadwal-shift',
|
||||
icon: <CalendarOutlined style={{ fontSize: '19px' }} />,
|
||||
label: (
|
||||
<Link to="/jadwal-shift" className="fontMenus">
|
||||
Jadwal Shift
|
||||
</Link>
|
||||
),
|
||||
},
|
||||
{
|
||||
key: 'shift-management',
|
||||
icon: <ClockCircleOutlined style={{ fontSize: '19px' }} />,
|
||||
label: 'Manajemen Shift',
|
||||
children: [
|
||||
{
|
||||
key: 'shift-schedule',
|
||||
icon: <CalendarOutlined style={{ fontSize: '19px' }} />,
|
||||
label: <Link to="/shift-management/schedule">Jadwal Shift</Link>,
|
||||
},
|
||||
{
|
||||
key: 'shift-member',
|
||||
icon: <UsergroupAddOutlined style={{ fontSize: '19px' }} />,
|
||||
@@ -165,6 +169,7 @@ const LayoutMenu = () => {
|
||||
if (pathname === '/role') return 'role';
|
||||
if (pathname === '/notification') return 'notification';
|
||||
if (pathname === '/event-alarm') return 'event-alarm';
|
||||
if (pathname === '/jadwal-shift') return 'jadwal-shift';
|
||||
|
||||
// Handle master routes
|
||||
if (pathname.startsWith('/master/')) {
|
||||
|
||||
Reference in New Issue
Block a user