Skip to content

Commit

Permalink
fix: update CIcon imports
Browse files Browse the repository at this point in the history
  • Loading branch information
woothu committed May 29, 2020
1 parent c5922ca commit 16647ba
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"dependencies": {
"@coreui/icons": "^2.0.0-beta.3",
"@coreui/icons-react": "^1.0.0-beta.5",
"@coreui/icons-react": "^1.0.0-rc.1",
"@coreui/utils": "~1.3.1",
"@popperjs/core": "~2.4.0",
"classnames": "~2.2.6",
Expand Down
6 changes: 3 additions & 3 deletions src/table/CDataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import classNames from 'classnames'
import CPagination from '../pagination/CPagination'
import CElementCover from '../element-cover/CElementCover'
import style from './CDataTable.module.css'
import { CIconRaw } from '@coreui/icons-react'
import CIcon from '@coreui/icons-react'
import { cilArrowTop, cilBan } from '@coreui/icons'

//component - CoreUI / CTable
Expand Down Expand Up @@ -364,7 +364,7 @@ const CDataTable = props => {
{
isSortable(index) &&
((sortingIconSlot && sortingIconSlot(getIconState(index), iconClasses(index))) ||
<CIconRaw
<CIcon
customClasses={classNames(iconClasses(index))}
width={18}
content={cilArrowTop}
Expand Down Expand Up @@ -510,7 +510,7 @@ const CDataTable = props => {
<div className="text-center my-5">
<h2>
{ noItemsText }
<CIconRaw
<CIcon
width="30"
name="cilBan"
content={cilBan}
Expand Down
4 changes: 2 additions & 2 deletions src/template/CSidebarNavDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React, {
} from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import { CIconRaw } from '@coreui/icons-react'
import CIcon from '@coreui/icons-react'
import { useLocation } from 'react-router-dom'

import { Context } from './CSidebar'
Expand Down Expand Up @@ -100,7 +100,7 @@ const CSidebarNavDropdown = props => {
ref={ref}
>
<a className="c-sidebar-nav-dropdown-toggle" onClick={toggle} >
{ icon && <CIconRaw {...iconProps(icon)} /> }
{ icon && <CIcon {...iconProps(icon)} /> }
{ fontIcon && <i className={iconClasses}/> }
{ name }
</a>
Expand Down
4 changes: 2 additions & 2 deletions src/template/CSidebarNavItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import { CLink, CBadge } from '../index'
import { CIconRaw } from '@coreui/icons-react'
import CIcon from '@coreui/icons-react'
import { iconProps } from './CSidebarNavDropdown'

//component - CoreUI / CSidebarNavItem
Expand Down Expand Up @@ -42,7 +42,7 @@ const CSidebarNavItem = props => {
{...routerLinkProps}
{...rest}
>
{ icon && <CIconRaw {...iconProps(icon)}/>}
{ icon && <CIcon {...iconProps(icon)}/>}
{ fontIcon && <i className={`c-sidebar-nav-icon ${fontIcon}`}/>}
{name}
{ badge && <CBadge {...{...badge, text: null}}>{badge.text}</CBadge>}
Expand Down

0 comments on commit 16647ba

Please sign in to comment.