From 600e6c8593e6a7caf0f1e98e9c93b3a324e88fdf Mon Sep 17 00:00:00 2001 From: vinix Date: Fri, 3 Oct 2025 17:03:59 +0700 Subject: [PATCH] update: enhance LayoutMenu component with additional menu items and icons --- src/layout/LayoutMenu.jsx | 88 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 85 insertions(+), 3 deletions(-) diff --git a/src/layout/LayoutMenu.jsx b/src/layout/LayoutMenu.jsx index 33fb21f..1c7caeb 100644 --- a/src/layout/LayoutMenu.jsx +++ b/src/layout/LayoutMenu.jsx @@ -2,7 +2,8 @@ import React, { useState } from 'react'; import { Link } from 'react-router-dom'; import { Menu, Typography, Image } from 'antd'; import { getSessionData } from '../components/Global/Formatter'; -import { HomeOutlined, +import { + HomeOutlined, DatabaseOutlined, SettingOutlined, UserOutlined, @@ -12,7 +13,19 @@ import { HomeOutlined, HistoryOutlined, DollarOutlined, RollbackOutlined, - ProductOutlined + ProductOutlined, + TagOutlined, + MobileOutlined, + WarningOutlined, + LineChartOutlined, + FileTextOutlined, + BellOutlined, + AlertOutlined, + SafetyOutlined, + TeamOutlined, + ClockCircleOutlined, + CalendarOutlined, + UsergroupAddOutlined } from '@ant-design/icons'; const { Text } = Typography; @@ -30,9 +43,78 @@ const allItems = [ children: [ { key: 'master-device', - icon: , + icon: , label: Device, }, + { + key: 'master-tag', + icon: , + label: Tag, + }, + { + key: 'master-brand-device', + icon: , + label: Brand Device, + }, + { + key: 'master-error-code', + icon: , + label: Error Code, + }, + ], + }, + { + key: 'history', + icon: , + label: 'History', + children: [ + { + key: 'history-trending', + icon: , + label: Trending, + }, + { + key: 'history-report', + icon: , + label: Report, + }, + ], + }, + { + key: 'notification', + icon: , + label: Notifikasi, + }, + { + key: 'event-alarm', + icon: , + label: Event Alarm, + }, + { + key: 'role', + icon: , + label: Role, + }, + { + key: 'user', + icon: , + label: User, + }, + { + key: 'shift-management', + icon: , + label: 'Manajemen Shift', + children: [ + { + key: 'shift-schedule', + icon: , + label: Jadwal Shift, + }, + { + key: 'shift-member', + icon: , + label: Anggota Shift, + }, ], }, ];