diff --git a/src/layout/MainLayout/Sidebar/MenuList/index.js b/src/layout/MainLayout/Sidebar/MenuList/index.js index 46370e4..7e71655 100755 --- a/src/layout/MainLayout/Sidebar/MenuList/index.js +++ b/src/layout/MainLayout/Sidebar/MenuList/index.js @@ -9,6 +9,7 @@ import useAuth from 'hooks/useAuth'; import other from 'menu-items/other'; import admin from 'menu-items/admin'; +import judge from 'menu-items/judge'; import dashboard from 'menu-items/dashboard'; // ==============================|| SIDEBAR MENU LIST ||============================== // @@ -16,7 +17,7 @@ import dashboard from 'menu-items/dashboard'; const MenuList = () => { const { accesstype } = useAuth(); - const menuItem = accesstype === '001' ? { items: [dashboard, admin, other] } : { items: [admin] }; + const menuItem = accesstype === '001' ? { items: [dashboard, admin, other] } : { items: [judge] }; const navItems = menuItem.items.map((item) => { switch (item.type) { diff --git a/src/layout/MainLayout/index.js b/src/layout/MainLayout/index.js index 20c8821..0ac8ed7 100755 --- a/src/layout/MainLayout/index.js +++ b/src/layout/MainLayout/index.js @@ -11,6 +11,7 @@ import Header from './Header'; import Sidebar from './Sidebar'; import other from 'menu-items/other'; import admin from 'menu-items/admin'; +import judge from 'menu-items/judge'; import dashboard from 'menu-items/dashboard'; import useConfig from 'hooks/useConfig'; import { drawerWidth } from 'store/constant'; @@ -118,7 +119,7 @@ const MainLayout = () => { { <>