feat: fix incident table

This commit is contained in:
Caio Cabral
2025-01-12 12:35:14 -05:00
parent 541a5b3f12
commit e235279af0
4 changed files with 8 additions and 4 deletions

View File

@@ -1,4 +1,3 @@
import React from "react";
import { useTheme } from "@emotion/react";
import PropTypes from "prop-types";
import { Box, IconButton, LinearProgress, Stack, Typography } from "@mui/material";

View File

@@ -194,8 +194,7 @@ const TeamPanel = () => {
},
"& .MuiTable-root .MuiTableBody-root .MuiTableCell-root, & .MuiTable-root p + p":
{
/* TODO set color */
color: "red" /* theme.palette.text.accent */,
color: theme.palette.primary.contrastTextSecondary,
},
}}
>

View File

@@ -167,7 +167,12 @@ const IncidentTable = ({ monitors, selectedMonitor, filter }) => {
) : (
<>
<TableContainer component={Paper}>
<Table>
<Table
sx={{
"& :is(th)": { color: theme.palette.primary.contrastText },
"& :is(td)": { color: theme.palette.primary.contrastTextSecondary },
}}
>
<TableHead>
<TableRow>
<TableCell>Monitor Name</TableCell>

View File

@@ -96,6 +96,7 @@ const Incidents = () => {
items={Object.values(monitors)}
sx={{
backgroundColor: theme.palette.primary.main,
color: theme.palette.primary.contrastTextSecondary,
}}
/>
<ButtonGroup