summary, activ eincident table
This commit is contained in:
1 parent
5822a363a9
commit
88a91022c3
4 files changed
+143
-30
No files matched your search
@@ -18,6 +18,7 @@ import { useTheme } from "@mui/material/styles";
|
||||
import Box from "@mui/material/Box";
|
||||
|
||||
interface IncidentsTableProps {
|
||||
title?: string;
|
||||
incidents?: Incident[];
|
||||
monitors?: Monitor[];
|
||||
incidentsCount: number;
|
||||
@@ -30,6 +31,7 @@ interface IncidentsTableProps {
|
||||
}
|
||||
|
||||
export const IncidentsTable = ({
|
||||
title,
|
||||
incidents,
|
||||
monitors,
|
||||
incidentsCount,
|
||||
@@ -200,6 +202,14 @@ export const IncidentsTable = ({
|
||||
|
||||
return (
|
||||
<Box>
|
||||
{title && (
|
||||
<Typography
|
||||
variant="h6"
|
||||
sx={{ mb: theme.spacing(4), textTransform: "uppercase" }}
|
||||
>
|
||||
{title}
|
||||
</Typography>
|
||||
)}
|
||||
<Table
|
||||
headers={getHeaders()}
|
||||
data={incidents}
|
||||
|
||||
Reference in new issue
Block a user