We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fef4dd7 commit ab570f7Copy full SHA for ab570f7
ui/admin/app/components/composed/PaginationActions.tsx
@@ -20,6 +20,8 @@ export function PaginationActions({
20
const hasNextPage = nextPage != null;
21
const hasPreviousPage = previousPage != null;
22
23
+ const currentPage = totalPages ? page + 1 : 0;
24
+
25
return (
26
<div className="flex flex-nowrap items-center justify-center gap-2">
27
<Button
@@ -32,7 +34,7 @@ export function PaginationActions({
32
34
</Button>
33
35
36
<p className="min-w-fit">
- {page + 1} / {totalPages}
37
+ {currentPage} / {totalPages}
38
</p>
39
40
0 commit comments