Skip to content

Commit 7108efc

Browse files
committed
refactor: update CIcons
1 parent 9ee8467 commit 7108efc

File tree

16 files changed

+168
-368
lines changed

16 files changed

+168
-368
lines changed

src/_nav.js

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
import React from 'react'
22
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'
315

416
const _nav = [
517
{
618
component: 'CNavItem',
719
name: 'Dashboard',
820
to: '/dashboard',
9-
icon: <CIcon icon="cil-speedometer" customClassName="nav-icon" />,
21+
icon: <CIcon icon={cilSpeedometer} customClassName="nav-icon" />,
1022
badge: {
1123
color: 'info',
1224
text: 'NEW',
@@ -20,13 +32,13 @@ const _nav = [
2032
component: 'CNavItem',
2133
name: 'Colors',
2234
to: '/theme/colors',
23-
icon: <CIcon icon="cil-drop" customClassName="nav-icon" />,
35+
icon: <CIcon icon={cilDrop} customClassName="nav-icon" />,
2436
},
2537
{
2638
component: 'CNavItem',
2739
name: 'Typography',
2840
to: '/theme/typography',
29-
icon: <CIcon icon="cil-pencil" customClassName="nav-icon" />,
41+
icon: <CIcon icon={cilPencil} customClassName="nav-icon" />,
3042
},
3143
{
3244
component: 'CNavTitle',
@@ -36,17 +48,15 @@ const _nav = [
3648
component: 'CNavGroup',
3749
name: 'Base',
3850
to: '/base',
39-
icon: 'cil-puzzle',
51+
icon: <CIcon icon={cilPuzzle} customClassName="nav-icon" />,
4052
items: [
4153
{
4254
component: 'CNavItem',
43-
4455
name: 'Accordion',
4556
to: '/base/accordion',
4657
},
4758
{
4859
component: 'CNavItem',
49-
5060
name: 'Breadcrumb',
5161
to: '/base/breadcrumbs',
5262
},
@@ -122,7 +132,7 @@ const _nav = [
122132
component: 'CNavGroup',
123133
name: 'Buttons',
124134
to: '/buttons',
125-
icon: <CIcon icon="cil-cursor" customClassName="nav-icon" />,
135+
icon: <CIcon icon={cilCursor} customClassName="nav-icon" />,
126136
items: [
127137
{
128138
component: 'CNavItem',
@@ -147,7 +157,7 @@ const _nav = [
147157
{
148158
component: 'CNavGroup',
149159
name: 'Forms',
150-
icon: <CIcon icon="cil-notes" customClassName="nav-icon" />,
160+
icon: <CIcon icon={cilNotes} customClassName="nav-icon" />,
151161
items: [
152162
{
153163
component: 'CNavItem',
@@ -203,12 +213,12 @@ const _nav = [
203213
component: 'CNavItem',
204214
name: 'Charts',
205215
to: '/charts',
206-
icon: <CIcon icon="cil-chart-pie" customClassName="nav-icon" />,
216+
icon: <CIcon icon={cilChartPie} customClassName="nav-icon" />,
207217
},
208218
{
209219
component: 'CNavGroup',
210220
name: 'Icons',
211-
icon: <CIcon icon="cil-star" customClassName="nav-icon" />,
221+
icon: <CIcon icon={cilStar} customClassName="nav-icon" />,
212222
items: [
213223
{
214224
component: 'CNavItem',
@@ -237,7 +247,7 @@ const _nav = [
237247
{
238248
component: 'CNavGroup',
239249
name: 'Notifications',
240-
icon: <CIcon icon="cil-bell" customClassName="nav-icon" />,
250+
icon: <CIcon icon={cilBell} customClassName="nav-icon" />,
241251
items: [
242252
{
243253
component: 'CNavItem',
@@ -269,7 +279,7 @@ const _nav = [
269279
component: 'CNavItem',
270280
name: 'Widgets',
271281
to: '/widgets',
272-
icon: <CIcon icon="cil-calculator" customClassName="nav-icon" />,
282+
icon: <CIcon icon={cilCalculator} customClassName="nav-icon" />,
273283
badge: {
274284
color: 'info',
275285
text: 'NEW',
@@ -282,7 +292,7 @@ const _nav = [
282292
{
283293
component: 'CNavGroup',
284294
name: 'Pages',
285-
icon: <CIcon icon="cil-star" customClassName="nav-icon" />,
295+
icon: <CIcon icon={cilStar} customClassName="nav-icon" />,
286296
items: [
287297
{
288298
component: 'CNavItem',

src/assets/icons/index.js

Lines changed: 0 additions & 259 deletions
This file was deleted.

0 commit comments

Comments
 (0)