diff --git a/src/index.js b/src/index.js index 3f8294c..8905390 100644 --- a/src/index.js +++ b/src/index.js @@ -796,7 +796,7 @@ export default class ReactTable extends Methods(Lifecycle(Component)) { ) } - const makePagination = () => { + const makePagination = (isTop) => { const paginationProps = _.splitProps( getPaginationProps(finalState, undefined, undefined, this) ) @@ -810,13 +810,13 @@ export default class ReactTable extends Methods(Lifecycle(Component)) { onPageSizeChange={this.onPageSizeChange} className={paginationProps.className} style={paginationProps.style} + isTop={isTop} {...paginationProps.rest} /> ) } const makeTable = () => { - const pagination = makePagination() return (
{showPagination && showPaginationTop ? ( -
{pagination}
+
{makePagination(true)}
) : null} {showPagination && showPaginationBottom ? ( -
{pagination}
+
{makePagination(false)}
) : null} {!pageRows.length && ( {_.normalizeComponent(noDataText)}