fix(embark-ui): pagination

This commit is contained in:
Anthony Laibe 2019-02-26 09:53:51 +00:00
parent 24a6a4701f
commit f5f610d520
2 changed files with 1 additions and 4 deletions

View File

@ -13,9 +13,6 @@ const Pagination = ({currentPage, numberOfPages, changePage}) => {
if (i < 1) {
i = 1;
}
if (max - i < NB_PAGES_MAX) {
max += NB_PAGES_MAX - max + 1;
}
const pageNumbers = [];
for (i; i <= max; i++) {
pageNumbers.push(i);

View File

@ -47,7 +47,7 @@ const Transactions = ({transactions, contracts, changePage, currentPage, numberO
</Row>
</div>
))}
<Pagination changePage={changePage} currentPage={currentPage} numberOfPages={numberOfPages}/>
{numberOfPages && <Pagination changePage={changePage} currentPage={currentPage} numberOfPages={numberOfPages}/>}
</CardBody>
</Card>
</Col>