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 Box from "@mui/material/Box";
import Typography from "@mui/material/Typography"; import Typography from "@mui/material/Typography";
import { Button } from "@/components/inputs"; import { Button } from "@/components/inputs";
@@ -70,10 +70,11 @@ export const IncidentTable = ({
id: "status", id: "status",
content: "Current monitor status", content: "Current monitor status",
render: (row) => { render: (row) => {
return ( const status = row.monitorId?.status;
<Typography textTransform={"capitalize"} color="textPrimary"> return status ? (
{row.monitorId?.status} <StatusLabel status={status} />
</Typography> ) : (
<Typography color="textSecondary">N/A</Typography>
); );
}, },
}, },