mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 19:44:52 +00:00
Merge pull request #3804 from Infisical/service-tokens-table-improvements
improvement(service-tokens): Improve Service Tokens Table
This commit is contained in:
@@ -70,7 +70,15 @@ export const Pagination = ({
|
||||
key={`pagination-per-page-options-${perPageOption}`}
|
||||
icon={perPage === perPageOption && <FontAwesomeIcon size="sm" icon={faCheck} />}
|
||||
iconPos="right"
|
||||
onClick={() => onChangePerPage(perPageOption)}
|
||||
onClick={() => {
|
||||
const totalPages = Math.ceil(count / perPageOption);
|
||||
|
||||
if (page > totalPages) {
|
||||
onChangePage(totalPages);
|
||||
}
|
||||
|
||||
onChangePerPage(perPageOption);
|
||||
}}
|
||||
>
|
||||
{perPageOption} rows per page
|
||||
</DropdownMenuItem>
|
||||
|
||||
Reference in New Issue
Block a user