Skip to content

Commit 16647ba

Browse files
committed
fix: update CIcon imports
1 parent c5922ca commit 16647ba

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"dependencies": {
4141
"@coreui/icons": "^2.0.0-beta.3",
42-
"@coreui/icons-react": "^1.0.0-beta.5",
42+
"@coreui/icons-react": "^1.0.0-rc.1",
4343
"@coreui/utils": "~1.3.1",
4444
"@popperjs/core": "~2.4.0",
4545
"classnames": "~2.2.6",

src/table/CDataTable.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import classNames from 'classnames'
44
import CPagination from '../pagination/CPagination'
55
import CElementCover from '../element-cover/CElementCover'
66
import style from './CDataTable.module.css'
7-
import { CIconRaw } from '@coreui/icons-react'
7+
import CIcon from '@coreui/icons-react'
88
import { 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-
<CIconRaw
367+
<CIcon
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-
<CIconRaw
513+
<CIcon
514514
width="30"
515515
name="cilBan"
516516
content={cilBan}

src/template/CSidebarNavDropdown.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import React, {
66
} from 'react'
77
import PropTypes from 'prop-types'
88
import classNames from 'classnames'
9-
import { CIconRaw } from '@coreui/icons-react'
9+
import CIcon from '@coreui/icons-react'
1010
import { useLocation } from 'react-router-dom'
1111

1212
import { Context } from './CSidebar'
@@ -100,7 +100,7 @@ const CSidebarNavDropdown = props => {
100100
ref={ref}
101101
>
102102
<a className="c-sidebar-nav-dropdown-toggle" onClick={toggle} >
103-
{ icon && <CIconRaw {...iconProps(icon)} /> }
103+
{ icon && <CIcon {...iconProps(icon)} /> }
104104
{ fontIcon && <i className={iconClasses}/> }
105105
{ name }
106106
</a>

src/template/CSidebarNavItem.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
44
import { CLink, CBadge } from '../index'
5-
import { CIconRaw } from '@coreui/icons-react'
5+
import CIcon from '@coreui/icons-react'
66
import { iconProps } from './CSidebarNavDropdown'
77

88
//component - CoreUI / CSidebarNavItem
@@ -42,7 +42,7 @@ const CSidebarNavItem = props => {
4242
{...routerLinkProps}
4343
{...rest}
4444
>
45-
{ icon && <CIconRaw {...iconProps(icon)}/>}
45+
{ icon && <CIcon {...iconProps(icon)}/>}
4646
{ fontIcon && <i className={`c-sidebar-nav-icon ${fontIcon}`}/>}
4747
{name}
4848
{ badge && <CBadge {...{...badge, text: null}}>{badge.text}</CBadge>}

0 commit comments

Comments
 (0)