improve checks fetch and paginaiton

This commit is contained in:
Alex Holliday committed 2025-12-23 19:26:07 +00:00
1 parent 6978a7e2bb
commit 4667c59573
4 files changed
+131 -21

No files matched your search

+5 -4
View File
@@ -20,14 +20,14 @@ type CheckWithMonitor = ICheck & {
export const ChecksTable = ({
checks,
count,
hasMore,
page,
setPage,
rowsPerPage,
setRowsPerPage,
}: {
checks: CheckWithMonitor[];
count: number;
hasMore?: boolean;
page: number;
setPage: (page: number) => void;
rowsPerPage: number;
@@ -76,7 +76,7 @@ export const ChecksTable = ({
},
{
id: "message",
content: t("checks.table.headers.message"),
content: t("common.table.headers.message"),
render: (row) => {
return row.message || "N/A";
},
@@ -114,7 +114,8 @@ export const ChecksTable = ({
/>
<Pagination
component="div"
count={count}
count={0}
hasMore={hasMore}
page={page}
rowsPerPage={rowsPerPage}
onPageChange={handlePageChange}