Skip to content

Commit 466c8f5

Browse files
author
Tomasz John
committed
- fix: link to Icon changed from dir to @
- fix: React.Fragment added
1 parent 5a0b08a commit 466c8f5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/CDataTable.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import PropTypes from 'prop-types';
33
import classNames from 'classnames';
44
import {tagPropType, mapToCssModules} from './Shared/helper.js';
55
import Slot from './Shared/Slot';
6-
import CIcon from '../coreui-icons/CIcon';
76
import CSpinner from './CSpinner';
87
import CPagination from './CPagination';
98
import style from './CDataTable.module.css';
9+
import {CIcon} from '@coreui/icons-react';
1010

1111
//component - CoreUI / CTable
1212

@@ -324,7 +324,7 @@ const CDataTable = props=>{
324324
}
325325

326326
return (
327-
<>
327+
<React.Fragment>
328328
<div ref={innerRef}>
329329
{
330330
itemsPerPageSelect || tableFilter ?
@@ -445,7 +445,7 @@ const CDataTable = props=>{
445445
>
446446
{currentItems.map((item, itemIndex)=>{
447447
return (
448-
<>
448+
<React.Fragment>
449449
<tr
450450
className={classNames(item._classes)}
451451
tabIndex={clickableRows ? 0 : null}
@@ -458,6 +458,7 @@ const CDataTable = props=>{
458458
return(
459459
<Slot
460460
content={scopedSlots[colName](item, itemIndex + firstItemIndex)}
461+
key={index}
461462
/>
462463
)
463464
else
@@ -490,7 +491,7 @@ const CDataTable = props=>{
490491
</td>
491492
</tr>:''
492493
}
493-
</>
494+
</React.Fragment>
494495
)
495496
})}
496497
{
@@ -592,7 +593,7 @@ const CDataTable = props=>{
592593
/>:''
593594
}
594595

595-
</>
596+
</React.Fragment>
596597
)
597598

598599
}

0 commit comments

Comments
 (0)