diff --git a/src/layout/LayoutMenu.jsx b/src/layout/LayoutMenu.jsx
index 2dda2c5..8c847eb 100644
--- a/src/layout/LayoutMenu.jsx
+++ b/src/layout/LayoutMenu.jsx
@@ -25,7 +25,6 @@ import {
TeamOutlined,
ClockCircleOutlined,
CalendarOutlined,
- UsergroupAddOutlined,
} from '@ant-design/icons';
const { Text } = Typography;
@@ -50,6 +49,11 @@ const allItems = [
icon: ,
label: Plant Section,
},
+ {
+ key: 'master-brand-device',
+ icon: ,
+ label: Brand Device,
+ },
{
key: 'master-device',
icon: ,
@@ -60,11 +64,6 @@ const allItems = [
icon: ,
label: Tag,
},
- {
- key: 'master-brand-device',
- icon: ,
- label: Brand Device,
- },
{
key: 'master-status',
icon: ,
@@ -139,18 +138,6 @@ const allItems = [
),
},
- {
- key: 'shift-management',
- icon: ,
- label: 'Manajemen Shift',
- children: [
- {
- key: 'shift-member',
- icon: ,
- label: Anggota Shift,
- },
- ],
- },
];
const LayoutMenu = () => {
diff --git a/src/layout/LayoutSidebar.jsx b/src/layout/LayoutSidebar.jsx
index 8f4eddb..e5fc25c 100644
--- a/src/layout/LayoutSidebar.jsx
+++ b/src/layout/LayoutSidebar.jsx
@@ -1,4 +1,4 @@
-import React from 'react'
+import React from 'react';
import { Layout } from 'antd';
import LayoutLogo from './LayoutLogo';
import LayoutMenu from './LayoutMenu';
@@ -18,12 +18,18 @@ const LayoutSidebar = () => {
}}
style={{
background: 'linear-gradient(180deg, #FF8C42 0%, #FF6B35 100%)',
+ overflow: 'auto',
+ height: '100vh',
+ position: 'fixed',
+ left: 0,
+ top: 0,
+ bottom: 0,
}}
>
- )
-}
+ );
+};
-export default LayoutSidebar
+export default LayoutSidebar;
diff --git a/src/layout/MainLayout.jsx b/src/layout/MainLayout.jsx
index cc9a9ee..87c7b5b 100644
--- a/src/layout/MainLayout.jsx
+++ b/src/layout/MainLayout.jsx
@@ -1,21 +1,26 @@
-import React from 'react';
-import { Layout, theme } from 'antd';
+import React, { useState, useEffect } from 'react';
+import { Layout, theme, Grid } from 'antd';
import LayoutFooter from './LayoutFooter';
import LayoutHeader from './LayoutHeader';
import LayoutSidebar from './LayoutSidebar';
const { Content } = Layout;
+const { useBreakpoint } = Grid;
const MainLayout = ({ children }) => {
const {
token: { colorBgContainer, borderRadiusLG },
} = theme.useToken();
+ const screens = useBreakpoint();
+ const isDesktop = screens.lg;
+
return (