From f5f610d52031d1f2647241b4a70cfba44744309a Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Tue, 26 Feb 2019 09:53:51 +0000 Subject: [PATCH] fix(embark-ui): pagination --- packages/embark-ui/src/components/Pagination.js | 3 --- packages/embark-ui/src/components/Transactions.js | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/embark-ui/src/components/Pagination.js b/packages/embark-ui/src/components/Pagination.js index a7244b0e5..b1df7b307 100644 --- a/packages/embark-ui/src/components/Pagination.js +++ b/packages/embark-ui/src/components/Pagination.js @@ -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); diff --git a/packages/embark-ui/src/components/Transactions.js b/packages/embark-ui/src/components/Transactions.js index 643466bb8..1642a48f4 100644 --- a/packages/embark-ui/src/components/Transactions.js +++ b/packages/embark-ui/src/components/Transactions.js @@ -47,7 +47,7 @@ const Transactions = ({transactions, contracts, changePage, currentPage, numberO ))} - + {numberOfPages && }