Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-19 17:31:40 +00:00
co-authored by renee-png
parent 5e37939864
commit f6dbbda6d4
+17
View File
@@ -431,6 +431,23 @@ function CasesList() {
</table>
</CardContent>
</Card>
{sorted.length > 0 && (
<div className="mt-3 flex items-center justify-between text-sm text-muted-foreground">
<div>
Showing {pageStart + 1}–{Math.min(pageStart + PAGE_SIZE, sorted.length)} of {sorted.length}
</div>
<div className="flex items-center gap-2">
<Button size="sm" variant="outline" disabled={currentPage <= 1} onClick={() => setPage(currentPage - 1)}>
Previous
</Button>
<span>Page {currentPage} of {totalPages}</span>
<Button size="sm" variant="outline" disabled={currentPage >= totalPages} onClick={() => setPage(currentPage + 1)}>
Next
</Button>
</div>
</div>
)}
</PageContainer>
);
}