feat: fixing table
This commit is contained in:
1 parent
7686b1ecf5
commit
07641a2bd8
7 files changed
+47
-17
No files matched your search
@@ -178,7 +178,14 @@ const MonitorTable = ({ isAdmin, filter, setIsSearching, isSearching, handlePaus
|
||||
</>
|
||||
)}
|
||||
<TableContainer component={Paper}>
|
||||
<Table>
|
||||
<Table
|
||||
sx={{
|
||||
backgroundColor: theme.palette.primary.main,
|
||||
"& :is(th, td)": {
|
||||
color: theme.palette.primary.contrastText.main,
|
||||
},
|
||||
}}
|
||||
>
|
||||
<TableHead>
|
||||
<TableRow>
|
||||
<TableCell
|
||||
@@ -241,13 +248,14 @@ const MonitorTable = ({ isAdmin, filter, setIsSearching, isSearching, handlePaus
|
||||
: (monitor.uptimePercentage * 100).toFixed(2);
|
||||
|
||||
percentageColor =
|
||||
/* TODO colors update */
|
||||
monitor.uptimePercentage < 0.25
|
||||
? theme.palette.percentage.uptimePoor
|
||||
: monitor.uptimePercentage < 0.5
|
||||
? theme.palette.percentage.uptimeFair
|
||||
: monitor.uptimePercentage < 0.75
|
||||
? theme.palette.percentage.uptimeGood
|
||||
: theme.palette.success.accent;
|
||||
: theme.palette.success.main;
|
||||
}
|
||||
|
||||
const params = {
|
||||
|
||||
@@ -42,6 +42,7 @@ const Host = ({ url, title, percentageColor, percentage }) => {
|
||||
sx={{
|
||||
color: percentageColor,
|
||||
fontWeight: 500,
|
||||
/* TODO point font weight to theme */
|
||||
ml: "15px",
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -64,7 +64,14 @@ const UptimeMonitors = () => {
|
||||
onClick={() => {
|
||||
navigate("/uptime/create");
|
||||
}}
|
||||
sx={{ fontWeight: 500, whiteSpace: "nowrap" }}
|
||||
sx={{
|
||||
fontWeight: 500,
|
||||
whiteSpace: "nowrap",
|
||||
/*
|
||||
TODO Problem, could not make button mui work
|
||||
backgroundColor: theme.palette.accent.main,
|
||||
color: theme.palette.accent.contrastText, */
|
||||
}}
|
||||
>
|
||||
Create new
|
||||
</Button>
|
||||
|
||||
Reference in new issue
Block a user