refactor: add CIcon example in _nav.js

This commit is contained in:
woothu 2020-07-30 12:37:29 +02:00
parent 68ce41db68
commit be5d1f0618

View File

@ -1,9 +1,12 @@
import React from 'react'
import CIcon from '@coreui/icons-react'
export default [ export default [
{ {
_tag: 'CSidebarNavItem', _tag: 'CSidebarNavItem',
name: 'Dashboard', name: 'Dashboard',
to: '/dashboard', to: '/dashboard',
icon: 'cil-speedometer', icon: <CIcon name="cil-speedometer" customClasses="c-sidebar-nav-icon"/>,
badge: { badge: {
color: 'info', color: 'info',
text: 'NEW', text: 'NEW',