Skip to content

Commit 27024d8

Browse files
authored
Merge pull request #1014 from madeinfree/v3.0.0-patch-1
fixed key warning
2 parents 4e889fb + 881633c commit 27024d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/js/custom/pagination/fully-custom-size-per-page.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ export default class FullyCustomSizePerPageDropDown extends React.Component {
2929
return (
3030
<div className='btn-group'>
3131
{
32-
[ 10, 25, 30 ].map(n => {
32+
[ 10, 25, 30 ].map((n, idx) => {
3333
const isActive = (n === props.currSizePerPage) ? 'active' : null;
3434
return (
35-
<button type='button' className={ `btn btn-info ${isActive}` } onClick={ () => props.changeSizePerPage(n) }>{ n }</button>
35+
<button key={ idx } type='button' className={ `btn btn-info ${isActive}` } onClick={ () => props.changeSizePerPage(n) }>{ n }</button>
3636
);
3737
})
3838
}

0 commit comments

Comments
 (0)