Skip to content

Commit be5d1f0

Browse files
committed
refactor: add CIcon example in _nav.js
1 parent 68ce41d commit be5d1f0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/containers/_nav.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
import React from 'react'
2+
import CIcon from '@coreui/icons-react'
3+
14
export default [
25
{
36
_tag: 'CSidebarNavItem',
47
name: 'Dashboard',
58
to: '/dashboard',
6-
icon: 'cil-speedometer',
9+
icon: <CIcon name="cil-speedometer" customClasses="c-sidebar-nav-icon"/>,
710
badge: {
811
color: 'info',
912
text: 'NEW',

0 commit comments

Comments
 (0)