File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -414,9 +414,9 @@ class Pagination extends React.Component {
414
414
onClick = { this . prev }
415
415
tabIndex = { this . hasPrev ( ) ? 0 : null }
416
416
onKeyPress = { this . runIfEnterPrev }
417
- className = { ` $ {
418
- this . hasPrev ( ) ? '' : `${ prefixCls } -disabled`
419
- } ${ prefixCls } -prev` }
417
+ className = { classNames ( ` ${ prefixCls } -prev` , {
418
+ [ `${ prefixCls } -disabled` ] : ! this . hasPrev ( ) ,
419
+ } ) }
420
420
aria-disabled = { ! this . hasPrev ( ) }
421
421
>
422
422
{ this . renderPrev ( prevPage ) }
@@ -441,9 +441,9 @@ class Pagination extends React.Component {
441
441
onClick = { this . next }
442
442
tabIndex = { this . hasPrev ( ) ? 0 : null }
443
443
onKeyPress = { this . runIfEnterNext }
444
- className = { ` $ {
445
- this . hasNext ( ) ? '' : `${ prefixCls } -disabled`
446
- } ${ prefixCls } -next` }
444
+ className = { classNames ( ` ${ prefixCls } -next` , {
445
+ [ `${ prefixCls } -disabled` ] : ! this . hasNext ( ) ,
446
+ } ) }
447
447
aria-disabled = { ! this . hasNext ( ) }
448
448
>
449
449
{ this . renderNext ( nextPage ) }
You can’t perform that action at this time.
0 commit comments