Added foldable pagination to SimplePaginator

This commit is contained in:
Alejandro Celaya
2019-09-22 10:41:31 +02:00
parent 7bbff114a4
commit 810ddd7717
2 changed files with 48 additions and 16 deletions

View File

@@ -66,7 +66,7 @@ export default class SortableBarGraph extends React.Component {
renderPagination(pagesCount) {
const { currentPage } = this.state;
const setCurrentPage = (currentPage) => () => this.setState({ currentPage });
const setCurrentPage = (currentPage) => this.setState({ currentPage });
return <SimplePaginator currentPage={currentPage} pagesCount={pagesCount} setCurrentPage={setCurrentPage} />;
}