File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 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'
44import CPagination from '../pagination/CPagination'
55import CElementCover from '../element-cover/CElementCover'
66import style from './CDataTable.module.css'
7- import { CIcon } from '@coreui/icons-react'
7+ import { CIconRaw } from '@coreui/icons-react'
88import { cilArrowTop , cilBan } from '@coreui/icons'
99
1010//component - CoreUI / CTable
@@ -364,7 +364,7 @@ const CDataTable = props => {
364364 {
365365 isSortable ( index ) &&
366366 ( ( sortingIconSlot && sortingIconSlot ( getIconState ( index ) , iconClasses ( index ) ) ) ||
367- < CIcon
367+ < CIconRaw
368368 customClasses = { classNames ( iconClasses ( index ) ) }
369369 width = { 18 }
370370 content = { cilArrowTop }
@@ -510,7 +510,7 @@ const CDataTable = props => {
510510 < div className = "text-center my-5" >
511511 < h2 >
512512 { noItemsText }
513- < CIcon
513+ < CIconRaw
514514 width = "30"
515515 name = "cilBan"
516516 content = { cilBan }
Original file line number Diff line number Diff line change 11import React , { useState , useContext , useMemo } from 'react'
22import PropTypes from 'prop-types'
33import classNames from 'classnames'
4- import { CIcon } from '@coreui/icons-react'
4+ import { CIconRaw } from '@coreui/icons-react'
55import { useLocation } from 'react-router-dom'
66
77import { Context } from './CSidebar'
@@ -77,7 +77,7 @@ const CSidebarNavDropdown = props => {
7777 return (
7878 < li className = { classes } { ...attributes } ref = { innerRef } >
7979 < a className = "c-sidebar-nav-dropdown-toggle" onClick = { ( ) => setIsOpen ( ! isOpen ) } >
80- { icon && < CIcon { ...iconProps ( icon ) } /> }
80+ { icon && < CIconRaw { ...iconProps ( icon ) } /> }
8181 { fontIcon && < i className = { iconClasses } /> }
8282 { name }
8383 </ a >
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from 'react'
22import PropTypes from 'prop-types'
33import classNames from 'classnames'
44import { CLink , CBadge } from '../index'
5- import { CIcon } from '@coreui/icons-react'
5+ import { CIconRaw } from '@coreui/icons-react'
66import { iconProps } from './CSidebarNavDropdown'
77
88//component - CoreUI / CSidebarNavItem
@@ -42,7 +42,7 @@ const CSidebarNavItem = props => {
4242 { ...routerLinkProps }
4343 { ...rest }
4444 >
45- { icon && < CIcon { ...iconProps ( icon ) } /> }
45+ { icon && < CIconRaw { ...iconProps ( icon ) } /> }
4646 { fontIcon && < i className = { `c-sidebar-nav-icon ${ fontIcon } ` } /> }
4747 { name }
4848 { badge && < CBadge { ...{ ...badge , text : null } } > { badge . text } </ CBadge > }
You can’t perform that action at this time.
0 commit comments