Skip to content

Commit

Permalink
improvement in pagination component (#4832)
Browse files Browse the repository at this point in the history
Signed-off-by: JanhaviAlekar <[email protected]>
Co-authored-by: Namkyu Park <[email protected]>
Co-authored-by: Sahil <[email protected]>
  • Loading branch information
3 people authored Aug 23, 2024
1 parent 90a8990 commit 273e1a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chaoscenter/web/src/controllers/Environments/Environment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ const EnvironmentController: React.FC = () => {
itemCount: totalEnvironments ?? 0,
pageCount: totalEnvironments ? Math.ceil(totalEnvironments / limit) : 1,
pageIndex: page,
pageSizeOptions: [...new Set([15, 30, limit])].sort(),
pageSizeOptions: [...new Set([5, 10, 15, 30, limit])].sort(),
pageSize: limit,
showPagination: true,
onPageSizeChange: event => setLimit(event)
}
};
Expand Down

0 comments on commit 273e1a1

Please sign in to comment.