1
1
import React from 'react'
2
2
import CIcon from '@coreui/icons-react'
3
+ import {
4
+ cilBell ,
5
+ cilCalculator ,
6
+ cilChartPie ,
7
+ cilCursor ,
8
+ cilDrop ,
9
+ cilNotes ,
10
+ cilPencil ,
11
+ cilPuzzle ,
12
+ cilSpeedometer ,
13
+ cilStar ,
14
+ } from '@coreui/icons'
3
15
4
16
const _nav = [
5
17
{
6
18
component : 'CNavItem' ,
7
19
name : 'Dashboard' ,
8
20
to : '/dashboard' ,
9
- icon : < CIcon icon = "cil-speedometer" customClassName = "nav-icon" /> ,
21
+ icon : < CIcon icon = { cilSpeedometer } customClassName = "nav-icon" /> ,
10
22
badge : {
11
23
color : 'info' ,
12
24
text : 'NEW' ,
@@ -20,13 +32,13 @@ const _nav = [
20
32
component : 'CNavItem' ,
21
33
name : 'Colors' ,
22
34
to : '/theme/colors' ,
23
- icon : < CIcon icon = "cil-drop" customClassName = "nav-icon" /> ,
35
+ icon : < CIcon icon = { cilDrop } customClassName = "nav-icon" /> ,
24
36
} ,
25
37
{
26
38
component : 'CNavItem' ,
27
39
name : 'Typography' ,
28
40
to : '/theme/typography' ,
29
- icon : < CIcon icon = "cil-pencil" customClassName = "nav-icon" /> ,
41
+ icon : < CIcon icon = { cilPencil } customClassName = "nav-icon" /> ,
30
42
} ,
31
43
{
32
44
component : 'CNavTitle' ,
@@ -36,17 +48,15 @@ const _nav = [
36
48
component : 'CNavGroup' ,
37
49
name : 'Base' ,
38
50
to : '/base' ,
39
- icon : 'cil-puzzle' ,
51
+ icon : < CIcon icon = { cilPuzzle } customClassName = "nav-icon" /> ,
40
52
items : [
41
53
{
42
54
component : 'CNavItem' ,
43
-
44
55
name : 'Accordion' ,
45
56
to : '/base/accordion' ,
46
57
} ,
47
58
{
48
59
component : 'CNavItem' ,
49
-
50
60
name : 'Breadcrumb' ,
51
61
to : '/base/breadcrumbs' ,
52
62
} ,
@@ -122,7 +132,7 @@ const _nav = [
122
132
component : 'CNavGroup' ,
123
133
name : 'Buttons' ,
124
134
to : '/buttons' ,
125
- icon : < CIcon icon = "cil-cursor" customClassName = "nav-icon" /> ,
135
+ icon : < CIcon icon = { cilCursor } customClassName = "nav-icon" /> ,
126
136
items : [
127
137
{
128
138
component : 'CNavItem' ,
@@ -147,7 +157,7 @@ const _nav = [
147
157
{
148
158
component : 'CNavGroup' ,
149
159
name : 'Forms' ,
150
- icon : < CIcon icon = "cil-notes" customClassName = "nav-icon" /> ,
160
+ icon : < CIcon icon = { cilNotes } customClassName = "nav-icon" /> ,
151
161
items : [
152
162
{
153
163
component : 'CNavItem' ,
@@ -203,12 +213,12 @@ const _nav = [
203
213
component : 'CNavItem' ,
204
214
name : 'Charts' ,
205
215
to : '/charts' ,
206
- icon : < CIcon icon = "cil-chart-pie" customClassName = "nav-icon" /> ,
216
+ icon : < CIcon icon = { cilChartPie } customClassName = "nav-icon" /> ,
207
217
} ,
208
218
{
209
219
component : 'CNavGroup' ,
210
220
name : 'Icons' ,
211
- icon : < CIcon icon = "cil-star" customClassName = "nav-icon" /> ,
221
+ icon : < CIcon icon = { cilStar } customClassName = "nav-icon" /> ,
212
222
items : [
213
223
{
214
224
component : 'CNavItem' ,
@@ -237,7 +247,7 @@ const _nav = [
237
247
{
238
248
component : 'CNavGroup' ,
239
249
name : 'Notifications' ,
240
- icon : < CIcon icon = "cil-bell" customClassName = "nav-icon" /> ,
250
+ icon : < CIcon icon = { cilBell } customClassName = "nav-icon" /> ,
241
251
items : [
242
252
{
243
253
component : 'CNavItem' ,
@@ -269,7 +279,7 @@ const _nav = [
269
279
component : 'CNavItem' ,
270
280
name : 'Widgets' ,
271
281
to : '/widgets' ,
272
- icon : < CIcon icon = "cil-calculator" customClassName = "nav-icon" /> ,
282
+ icon : < CIcon icon = { cilCalculator } customClassName = "nav-icon" /> ,
273
283
badge : {
274
284
color : 'info' ,
275
285
text : 'NEW' ,
@@ -282,7 +292,7 @@ const _nav = [
282
292
{
283
293
component : 'CNavGroup' ,
284
294
name : 'Pages' ,
285
- icon : < CIcon icon = "cil-star" customClassName = "nav-icon" /> ,
295
+ icon : < CIcon icon = { cilStar } customClassName = "nav-icon" /> ,
286
296
items : [
287
297
{
288
298
component : 'CNavItem' ,
0 commit comments