Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #58 from palladians/fix/pagination-rerender
Browse files Browse the repository at this point in the history
fix(pagination): fix page number rerendering
  • Loading branch information
mrcnk authored Oct 18, 2023
2 parents 9bec40b + d88db2d commit 03efbd2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
7 changes: 4 additions & 3 deletions src/components/accounts/accounts-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ export const AccountsTable = ({
{header.isPlaceholder
? null
: flexRender(
header.column.columnDef.header,
header.getContext()
)}
header.column.columnDef.header,
header.getContext()
)}
</TableHead>
)
})}
Expand Down Expand Up @@ -322,6 +322,7 @@ export const AccountsTable = ({
</Table>
</div>
<Pagination
key={currentPage}
currentPage={currentPage}
pagesCount={pagesCount}
resource="accounts"
Expand Down
7 changes: 4 additions & 3 deletions src/components/staking/staking-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ export const StakingTable = ({
{header.isPlaceholder
? null
: flexRender(
header.column.columnDef.header,
header.getContext()
)}
header.column.columnDef.header,
header.getContext()
)}
</TableHead>
)
})}
Expand Down Expand Up @@ -301,6 +301,7 @@ export const StakingTable = ({
</Table>
</div>
<Pagination
key={currentPage}
currentPage={currentPage}
pagesCount={pagesCount}
resource="staking"
Expand Down
7 changes: 4 additions & 3 deletions src/components/transactions/transactions-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ export const TransactionsTable = ({
{header.isPlaceholder
? null
: flexRender(
header.column.columnDef.header,
header.getContext()
)}
header.column.columnDef.header,
header.getContext()
)}
</TableHead>
)
})}
Expand Down Expand Up @@ -340,6 +340,7 @@ export const TransactionsTable = ({
</Table>
</div>
<Pagination
key={currentPage}
currentPage={currentPage}
pagesCount={pagesCount}
resource="transactions"
Expand Down

0 comments on commit 03efbd2

Please sign in to comment.