We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3f8cfc commit ac73e9bCopy full SHA for ac73e9b
packages/react-bootstrap-table2-paginator/src/pagination-list-adapter.js
@@ -12,13 +12,17 @@ const paginationListAdapter = WrappedComponent =>
12
totalPages,
13
pageButtonRenderer,
14
onPageChange,
15
- disablePageTitle
+ disablePageTitle,
16
+ hidePageListOnlyOnePage
17
} = this.props;
18
const pages = this.calculatePageStatus(
19
this.calculatePages(totalPages, lastPage),
20
lastPage,
21
disablePageTitle
22
);
23
+ if (totalPages === 1 && hidePageListOnlyOnePage) {
24
+ return null;
25
+ }
26
return (
27
<WrappedComponent
28
pageButtonRenderer={ pageButtonRenderer }
0 commit comments