mirror of
https://github.com/gosticks/react-table.git
synced 2026-07-01 10:00:03 +00:00
when you have no data pages shows as 0 instead of 1 (#248)
see https://react-table.js.org/?selectedKind=2.%20Demos&selectedStory=Custom%20%22No%20Data%22%20Text&full=0&down=0&left=1&panelRight=0&downPanel=kadirahq%2Fstorybook-addon-actions%2Factions-panel
This commit is contained in:
committed by
Tanner Linsley
parent
2ba0bf73ad
commit
97e560cb0f
@@ -104,7 +104,7 @@ export default class ReactTablePagination extends Component {
|
||||
</div>
|
||||
) : (
|
||||
<span className='-currentPage'>{page + 1}</span>
|
||||
)} {this.props.ofText} <span className='-totalPages'>{pages}</span>
|
||||
)} {this.props.ofText} <span className='-totalPages'>{pages || 1}</span>
|
||||
</span>
|
||||
{showPageSizeOptions && (
|
||||
<span className='select-wrap -pageSizeOptions'>
|
||||
|
||||
Reference in New Issue
Block a user