update incident table
This commit is contained in:
1 parent
c762f9425a
commit
28ebdcb216
1 file changed
+6
-5
@@ -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>
|
||||
);
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user