mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
Hide pagination links when no transactions are found
This commit is contained in:
parent
1a80ca3ebc
commit
89121b47b1
1 changed files with 2 additions and 1 deletions
|
|
@ -129,7 +129,8 @@ export const InboxPageComponent = props => {
|
|||
</li>
|
||||
: null;
|
||||
|
||||
const pagingLinks = !fetchInProgress && pagination && pagination.totalPages !== 1
|
||||
const hasTransactions = !fetchInProgress && transactions && transactions.length > 0;
|
||||
const pagingLinks = hasTransactions && pagination && pagination.totalPages !== 1
|
||||
? <PaginationLinks
|
||||
className={css.pagination}
|
||||
pageName="InboxPage"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue