File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import classNames from 'classnames'
4
4
import CPagination from '../pagination/CPagination'
5
5
import CElementCover from '../element-cover/CElementCover'
6
6
import style from './CDataTable.module.css'
7
- import { CIcon } from '@coreui/icons-react'
7
+ import { CIconRaw } from '@coreui/icons-react'
8
8
import { cilArrowTop , cilBan } from '@coreui/icons'
9
9
10
10
//component - CoreUI / CTable
@@ -364,7 +364,7 @@ const CDataTable = props => {
364
364
{
365
365
isSortable ( index ) &&
366
366
( ( sortingIconSlot && sortingIconSlot ( getIconState ( index ) , iconClasses ( index ) ) ) ||
367
- < CIcon
367
+ < CIconRaw
368
368
customClasses = { classNames ( iconClasses ( index ) ) }
369
369
width = { 18 }
370
370
content = { cilArrowTop }
@@ -510,7 +510,7 @@ const CDataTable = props => {
510
510
< div className = "text-center my-5" >
511
511
< h2 >
512
512
{ noItemsText }
513
- < CIcon
513
+ < CIconRaw
514
514
width = "30"
515
515
name = "cilBan"
516
516
content = { cilBan }
Original file line number Diff line number Diff line change 1
1
import React , { useState , useContext , useMemo } from 'react'
2
2
import PropTypes from 'prop-types'
3
3
import classNames from 'classnames'
4
- import { CIcon } from '@coreui/icons-react'
4
+ import { CIconRaw } from '@coreui/icons-react'
5
5
import { useLocation } from 'react-router-dom'
6
6
7
7
import { Context } from './CSidebar'
@@ -77,7 +77,7 @@ const CSidebarNavDropdown = props => {
77
77
return (
78
78
< li className = { classes } { ...attributes } ref = { innerRef } >
79
79
< a className = "c-sidebar-nav-dropdown-toggle" onClick = { ( ) => setIsOpen ( ! isOpen ) } >
80
- { icon && < CIcon { ...iconProps ( icon ) } /> }
80
+ { icon && < CIconRaw { ...iconProps ( icon ) } /> }
81
81
{ fontIcon && < i className = { iconClasses } /> }
82
82
{ name }
83
83
</ a >
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from 'react'
2
2
import PropTypes from 'prop-types'
3
3
import classNames from 'classnames'
4
4
import { CLink , CBadge } from '../index'
5
- import { CIcon } from '@coreui/icons-react'
5
+ import { CIconRaw } from '@coreui/icons-react'
6
6
import { iconProps } from './CSidebarNavDropdown'
7
7
8
8
//component - CoreUI / CSidebarNavItem
@@ -42,7 +42,7 @@ const CSidebarNavItem = props => {
42
42
{ ...routerLinkProps }
43
43
{ ...rest }
44
44
>
45
- { icon && < CIcon { ...iconProps ( icon ) } /> }
45
+ { icon && < CIconRaw { ...iconProps ( icon ) } /> }
46
46
{ fontIcon && < i className = { `c-sidebar-nav-icon ${ fontIcon } ` } /> }
47
47
{ name }
48
48
{ badge && < CBadge { ...{ ...badge , text : null } } > { badge . text } </ CBadge > }
You can’t perform that action at this time.
0 commit comments