feat: implement pagination and total count for redemptions API #386

- Updated GetAllRedemptions and SearchRedemptions functions to return total count along with paginated results.
- Modified API endpoints to accept page size as a parameter, enhancing flexibility in data retrieval.
- Adjusted RedemptionsTable component to support pagination and display total count, improving user experience.
- Ensured consistent handling of pagination across related components, including LogsTable and UsersTable.
This commit is contained in:
CalciumIon
2024-12-31 15:28:25 +08:00
parent 014fb7edab
commit 4f196a62e1
5 changed files with 147 additions and 75 deletions

View File

@@ -487,7 +487,7 @@ const UsersTable = () => {
currentPage: activePage,
pageSize: pageSize,
total: userCount,
pageSizeOpts: [2, 20, 50, 100],
pageSizeOpts: [10, 20, 50, 100],
showSizeChanger: true,
onPageSizeChange: (size) => {
handlePageSizeChange(size);