type errors

This commit is contained in:
Alex Holliday
2026-02-11 20:29:50 +00:00
parent 4b1c588f5a
commit 71cdd05b15
3 changed files with 4 additions and 9 deletions
@@ -6,7 +6,7 @@ import {
} from "@/Components/v2/design-elements";
import Box from "@mui/material/Box";
import type { Header } from "@/Components/v2/design-elements/Table";
import type { Monitor, MonitorStatus } from "@/Types/Monitor";
import type { Monitor } from "@/Types/Monitor";
import { useTranslation } from "react-i18next";
import { formatDateWithTz } from "@/Utils/TimeUtils";
@@ -52,7 +52,7 @@ export const ChecksTable = ({
id: "status",
content: "Status",
render: (row) => {
return <StatusLabel status={row.status as MonitorStatus} />;
return <StatusLabel status={row.status === true ? "up" : "down"} />;
},
},
{
@@ -195,12 +195,7 @@ export const InfraMonitorsTable = ({
</Typography>
),
render: (row) => {
return (
<StatusLabel
status={row.status}
isActive={row.isActive}
/>
);
return <StatusLabel status={row.status} />;
},
},
{
@@ -15,7 +15,7 @@ const getHeaders = (t: Function, uiTimezone: string) => {
id: "status",
content: t("common.table.headers.status"),
render: (row) => {
return <StatusLabel status={row.status} />;
return <StatusLabel status={row.status === true ? "up" : "down"} />;
},
},
{