update incident table

This commit is contained in:
Alex Holliday committed 2025-12-08 18:19:07 +00:00
1 parent c762f9425a
commit 28ebdcb216
1 file changed
+6 -5
+6 -5
View File
@@ -1,4 +1,4 @@
import { Table, Pagination, ValueLabel } from "@/components/design-elements";
import { Table, Pagination, ValueLabel, StatusLabel } from "@/components/design-elements";
import Box from "@mui/material/Box";
import Typography from "@mui/material/Typography";
import { Button } from "@/components/inputs";
@@ -70,10 +70,11 @@ export const IncidentTable = ({
id: "status",
content: "Current monitor status",
render: (row) => {
return (
<Typography textTransform={"capitalize"} color="textPrimary">
{row.monitorId?.status}
</Typography>
const status = row.monitorId?.status;
return status ? (
<StatusLabel status={status} />
) : (
<Typography color="textSecondary">N/A</Typography>
);
},
},