왼쪽메뉴에 어드민 메뉴의 트리구조 리스트 api 값을 사용하도록 기능 추가
This commit is contained in:
37
src/_nav.tsx
37
src/_nav.tsx
@@ -1,21 +1,8 @@
|
||||
import React from 'react'
|
||||
import CIcon from '@coreui/icons-react'
|
||||
import {
|
||||
cilBell,
|
||||
cilBrowser,
|
||||
cilBoatAlt,
|
||||
cilCalculator,
|
||||
cilChartPie,
|
||||
cilCursor,
|
||||
cilDescription,
|
||||
cilDrop,
|
||||
cilExternalLink,
|
||||
cilNotes,
|
||||
cilPencil,
|
||||
cilPuzzle,
|
||||
cilSpeedometer,
|
||||
cilStar,
|
||||
cilMenu,
|
||||
} from '@coreui/icons'
|
||||
import { CNavGroup, CNavItem, CNavTitle } from '@coreui/react'
|
||||
|
||||
@@ -32,29 +19,7 @@ const _nav = [
|
||||
},
|
||||
{
|
||||
component: CNavTitle,
|
||||
name: 'Theme',
|
||||
},
|
||||
{
|
||||
component: CNavItem,
|
||||
name: 'Colors',
|
||||
to: '/theme/colors',
|
||||
icon: <CIcon icon={cilDrop} customClassName="nav-icon" />,
|
||||
},
|
||||
{
|
||||
component: CNavItem,
|
||||
name: 'Typography',
|
||||
to: '/theme/typography',
|
||||
icon: <CIcon icon={cilPencil} customClassName="nav-icon" />,
|
||||
},
|
||||
{
|
||||
component: CNavTitle,
|
||||
name: 'Admin',
|
||||
},
|
||||
{
|
||||
component: CNavItem,
|
||||
name: 'Menu Management',
|
||||
to: '/admin/menu',
|
||||
icon: <CIcon icon={cilMenu} customClassName="nav-icon" />,
|
||||
name: 'Menu',
|
||||
},
|
||||
{
|
||||
component: CNavTitle,
|
||||
|
||||
Reference in New Issue
Block a user