spotted errors nd marked to be solved after merge
This commit is contained in:
1 parent
2ab6a578c3
commit
921fb6e458
4 files changed
+21
-14
No files matched your search
@@ -47,7 +47,8 @@ const DataTable = ({ headers, data, config = { emptyView: "No data" } }) => {
|
||||
"& :is(td)": { color: theme.palette.primary.contrastTextSecondary },
|
||||
}}
|
||||
>
|
||||
<TableHead sx={{ backgroundColor: theme.palette.background.accent }}>
|
||||
{/* TODO Check */}
|
||||
<TableHead sx={{ backgroundColor: theme.palette.secondary.main }}>
|
||||
<TableRow>
|
||||
{headers.map((header, index) => (
|
||||
<TableCell
|
||||
|
||||
@@ -140,7 +140,8 @@ function Infrastructure() {
|
||||
<IconButton
|
||||
sx={{
|
||||
"& svg path": {
|
||||
stroke: theme.palette.other.icon,
|
||||
/* TODO check */
|
||||
stroke: "red" /* theme.palette.other.icon */,
|
||||
},
|
||||
}}
|
||||
>
|
||||
@@ -258,7 +259,7 @@ function Infrastructure() {
|
||||
rowSX: {
|
||||
cursor: "pointer",
|
||||
"&:hover": {
|
||||
backgroundColor: theme.palette.background.accent,
|
||||
backgroundColor: "red" /* theme.palette.background.accent */,
|
||||
},
|
||||
},
|
||||
onRowClick: (row) => openDetails(row.id),
|
||||
|
||||
@@ -227,10 +227,12 @@ const UptimeDataTable = ({
|
||||
|
||||
<Box
|
||||
className="current-monitors-counter"
|
||||
color={theme.palette.text.primary}
|
||||
/* TODO Check */
|
||||
color={"red" /* theme.palette.text.primary */}
|
||||
border={1}
|
||||
borderColor={theme.palette.border.light}
|
||||
backgroundColor={theme.palette.background.accent}
|
||||
/* TODO Check */
|
||||
borderColor={"red" /* theme.palette.border.light */}
|
||||
backgroundColor={"red" /* theme.palette.background.accent */}
|
||||
>
|
||||
{monitorCount}
|
||||
</Box>
|
||||
@@ -250,7 +252,8 @@ const UptimeDataTable = ({
|
||||
height="100%"
|
||||
position="absolute"
|
||||
sx={{
|
||||
backgroundColor: theme.palette.background.main,
|
||||
/* TODO check */
|
||||
backgroundColor: "red" /* theme.palette.background.main */,
|
||||
opacity: 0.8,
|
||||
zIndex: 100,
|
||||
}}
|
||||
@@ -267,7 +270,8 @@ const UptimeDataTable = ({
|
||||
>
|
||||
<CircularProgress
|
||||
sx={{
|
||||
color: theme.palette.other.icon,
|
||||
/* TODO check */
|
||||
color: "red" /* theme.palette.other.icon */,
|
||||
}}
|
||||
/>
|
||||
</Box>
|
||||
@@ -280,7 +284,8 @@ const UptimeDataTable = ({
|
||||
rowSX: {
|
||||
cursor: "pointer",
|
||||
"&:hover": {
|
||||
backgroundColor: theme.palette.background.accent,
|
||||
/* TODO check */
|
||||
backgroundColor: "red" /* theme.palette.background.accent */,
|
||||
},
|
||||
},
|
||||
onRowClick: (row) => {
|
||||
|
||||
@@ -57,7 +57,7 @@ const UptimeMonitors = () => {
|
||||
|
||||
const getMonitorWithPercentage = useCallback((monitor, theme) => {
|
||||
let uptimePercentage = "";
|
||||
let percentageColor = theme.palette.percentage.uptimeExcellent;
|
||||
let percentageColor = "red"; /* theme.palette.percentage.uptimeExcellent */
|
||||
|
||||
if (monitor.uptimePercentage !== undefined) {
|
||||
uptimePercentage =
|
||||
@@ -67,12 +67,12 @@ const UptimeMonitors = () => {
|
||||
|
||||
percentageColor =
|
||||
monitor.uptimePercentage < 0.25
|
||||
? theme.palette.percentage.uptimePoor
|
||||
? "red" /* theme.palette.percentage.uptimePoor */
|
||||
: monitor.uptimePercentage < 0.5
|
||||
? theme.palette.percentage.uptimeFair
|
||||
? "red" /* theme.palette.percentage.uptimeFair */
|
||||
: monitor.uptimePercentage < 0.75
|
||||
? theme.palette.percentage.uptimeGood
|
||||
: theme.palette.percentage.uptimeExcellent;
|
||||
? /* theme.palette.percentage.uptimeGood */ "red"
|
||||
: "red" /* theme.palette.percentage.uptimeExcellent */;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user