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 },
|
"& :is(td)": { color: theme.palette.primary.contrastTextSecondary },
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<TableHead sx={{ backgroundColor: theme.palette.background.accent }}>
|
{/* TODO Check */}
|
||||||
|
<TableHead sx={{ backgroundColor: theme.palette.secondary.main }}>
|
||||||
<TableRow>
|
<TableRow>
|
||||||
{headers.map((header, index) => (
|
{headers.map((header, index) => (
|
||||||
<TableCell
|
<TableCell
|
||||||
|
|||||||
@@ -140,7 +140,8 @@ function Infrastructure() {
|
|||||||
<IconButton
|
<IconButton
|
||||||
sx={{
|
sx={{
|
||||||
"& svg path": {
|
"& svg path": {
|
||||||
stroke: theme.palette.other.icon,
|
/* TODO check */
|
||||||
|
stroke: "red" /* theme.palette.other.icon */,
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -258,7 +259,7 @@ function Infrastructure() {
|
|||||||
rowSX: {
|
rowSX: {
|
||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
backgroundColor: theme.palette.background.accent,
|
backgroundColor: "red" /* theme.palette.background.accent */,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
onRowClick: (row) => openDetails(row.id),
|
onRowClick: (row) => openDetails(row.id),
|
||||||
|
|||||||
@@ -227,10 +227,12 @@ const UptimeDataTable = ({
|
|||||||
|
|
||||||
<Box
|
<Box
|
||||||
className="current-monitors-counter"
|
className="current-monitors-counter"
|
||||||
color={theme.palette.text.primary}
|
/* TODO Check */
|
||||||
|
color={"red" /* theme.palette.text.primary */}
|
||||||
border={1}
|
border={1}
|
||||||
borderColor={theme.palette.border.light}
|
/* TODO Check */
|
||||||
backgroundColor={theme.palette.background.accent}
|
borderColor={"red" /* theme.palette.border.light */}
|
||||||
|
backgroundColor={"red" /* theme.palette.background.accent */}
|
||||||
>
|
>
|
||||||
{monitorCount}
|
{monitorCount}
|
||||||
</Box>
|
</Box>
|
||||||
@@ -250,7 +252,8 @@ const UptimeDataTable = ({
|
|||||||
height="100%"
|
height="100%"
|
||||||
position="absolute"
|
position="absolute"
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: theme.palette.background.main,
|
/* TODO check */
|
||||||
|
backgroundColor: "red" /* theme.palette.background.main */,
|
||||||
opacity: 0.8,
|
opacity: 0.8,
|
||||||
zIndex: 100,
|
zIndex: 100,
|
||||||
}}
|
}}
|
||||||
@@ -267,7 +270,8 @@ const UptimeDataTable = ({
|
|||||||
>
|
>
|
||||||
<CircularProgress
|
<CircularProgress
|
||||||
sx={{
|
sx={{
|
||||||
color: theme.palette.other.icon,
|
/* TODO check */
|
||||||
|
color: "red" /* theme.palette.other.icon */,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
@@ -280,7 +284,8 @@ const UptimeDataTable = ({
|
|||||||
rowSX: {
|
rowSX: {
|
||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
backgroundColor: theme.palette.background.accent,
|
/* TODO check */
|
||||||
|
backgroundColor: "red" /* theme.palette.background.accent */,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
onRowClick: (row) => {
|
onRowClick: (row) => {
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ const UptimeMonitors = () => {
|
|||||||
|
|
||||||
const getMonitorWithPercentage = useCallback((monitor, theme) => {
|
const getMonitorWithPercentage = useCallback((monitor, theme) => {
|
||||||
let uptimePercentage = "";
|
let uptimePercentage = "";
|
||||||
let percentageColor = theme.palette.percentage.uptimeExcellent;
|
let percentageColor = "red"; /* theme.palette.percentage.uptimeExcellent */
|
||||||
|
|
||||||
if (monitor.uptimePercentage !== undefined) {
|
if (monitor.uptimePercentage !== undefined) {
|
||||||
uptimePercentage =
|
uptimePercentage =
|
||||||
@@ -67,12 +67,12 @@ const UptimeMonitors = () => {
|
|||||||
|
|
||||||
percentageColor =
|
percentageColor =
|
||||||
monitor.uptimePercentage < 0.25
|
monitor.uptimePercentage < 0.25
|
||||||
? theme.palette.percentage.uptimePoor
|
? "red" /* theme.palette.percentage.uptimePoor */
|
||||||
: monitor.uptimePercentage < 0.5
|
: monitor.uptimePercentage < 0.5
|
||||||
? theme.palette.percentage.uptimeFair
|
? "red" /* theme.palette.percentage.uptimeFair */
|
||||||
: monitor.uptimePercentage < 0.75
|
: monitor.uptimePercentage < 0.75
|
||||||
? theme.palette.percentage.uptimeGood
|
? /* theme.palette.percentage.uptimeGood */ "red"
|
||||||
: theme.palette.percentage.uptimeExcellent;
|
: "red" /* theme.palette.percentage.uptimeExcellent */;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in new issue
Block a user