@@ -3,10 +3,10 @@ import PropTypes from 'prop-types';
3
3
import classNames from 'classnames' ;
4
4
import { tagPropType , mapToCssModules } from './Shared/helper.js' ;
5
5
import Slot from './Shared/Slot' ;
6
- import CIcon from '../coreui-icons/CIcon' ;
7
6
import CSpinner from './CSpinner' ;
8
7
import CPagination from './CPagination' ;
9
8
import style from './CDataTable.module.css' ;
9
+ import { CIcon } from '@coreui/icons-react' ;
10
10
11
11
//component - CoreUI / CTable
12
12
@@ -324,7 +324,7 @@ const CDataTable = props=>{
324
324
}
325
325
326
326
return (
327
- < >
327
+ < React . Fragment >
328
328
< div ref = { innerRef } >
329
329
{
330
330
itemsPerPageSelect || tableFilter ?
@@ -445,7 +445,7 @@ const CDataTable = props=>{
445
445
>
446
446
{ currentItems . map ( ( item , itemIndex ) => {
447
447
return (
448
- < >
448
+ < React . Fragment >
449
449
< tr
450
450
className = { classNames ( item . _classes ) }
451
451
tabIndex = { clickableRows ? 0 : null }
@@ -458,6 +458,7 @@ const CDataTable = props=>{
458
458
return (
459
459
< Slot
460
460
content = { scopedSlots [ colName ] ( item , itemIndex + firstItemIndex ) }
461
+ key = { index }
461
462
/>
462
463
)
463
464
else
@@ -490,7 +491,7 @@ const CDataTable = props=>{
490
491
</ td >
491
492
</ tr > :''
492
493
}
493
- </ >
494
+ </ React . Fragment >
494
495
)
495
496
} ) }
496
497
{
@@ -592,7 +593,7 @@ const CDataTable = props=>{
592
593
/> :''
593
594
}
594
595
595
- </ >
596
+ </ React . Fragment >
596
597
)
597
598
598
599
}
0 commit comments