From a7da0419047192e8679854f71ff26aafde9b2633 Mon Sep 17 00:00:00 2001 From: minuk926 Date: Fri, 6 May 2022 18:31:03 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EA=B0=9C=EB=B0=9C=EC=9E=90?= =?UTF-8?q?=EB=8F=84=EA=B5=AC=20=EC=BD=98=EC=86=94=20=EC=97=90=EB=9F=AC=20?= =?UTF-8?q?fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MainLayout/Sidebar/MenuList/index.js | 3 +- src/layout/MainLayout/index.js | 5 +- src/menu-items/other.js | 55 ------------------- 3 files changed, 3 insertions(+), 60 deletions(-) delete mode 100755 src/menu-items/other.js diff --git a/src/layout/MainLayout/Sidebar/MenuList/index.js b/src/layout/MainLayout/Sidebar/MenuList/index.js index 7e71655..e62dbcb 100755 --- a/src/layout/MainLayout/Sidebar/MenuList/index.js +++ b/src/layout/MainLayout/Sidebar/MenuList/index.js @@ -7,7 +7,6 @@ import { Typography } from '@mui/material'; import NavGroup from './NavGroup'; 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'; @@ -17,7 +16,7 @@ import dashboard from 'menu-items/dashboard'; const MenuList = () => { const { accesstype } = useAuth(); - const menuItem = accesstype === '001' ? { items: [dashboard, admin, other] } : { items: [judge] }; + const menuItem = accesstype === '001' ? { items: [dashboard, admin] } : { 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 726e795..1d1e110 100755 --- a/src/layout/MainLayout/index.js +++ b/src/layout/MainLayout/index.js @@ -9,7 +9,6 @@ import { AppBar, Box, Container, CssBaseline, Toolbar, useMediaQuery } from '@mu import Breadcrumbs from 'ui-component/extended/Breadcrumbs'; 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'; @@ -120,7 +119,7 @@ const MainLayout = () => { { <> , - type: 'item', - url: '/modalForm', - icon: icons.IconHelp - }, - { - id: 'sample-page', - title: , - type: 'item', - url: '/sample-page', - icon: icons.IconBrandChrome, - breadcrumbs: false - }, - { - id: 'documentation', - title: , - type: 'item', - url: 'https://codedthemes.gitbook.io/berry/', - icon: icons.IconHelp, - external: true, - target: true - } - - // { - // id: 'draggableModal', - // title: , - // type: 'item', - // url: '/draggableModal', - // icon: icons.IconHelp - // } - ] -}; - -export default other;