Changed the bg of the gauge itself in order to meet the requirements.
This commit is contained in:
1 parent
ad3ee24adb
commit
dfb0bd10d2
1 file changed
+3
-3
@@ -18,13 +18,13 @@ const ResponseGaugeChart = ({ avgResponseTime }) => {
|
|||||||
? {
|
? {
|
||||||
category: "Excellent",
|
category: "Excellent",
|
||||||
main: theme.palette.success.main,
|
main: theme.palette.success.main,
|
||||||
bg: theme.palette.success.contrastText,
|
bg: theme.palette.success.lowContrast,
|
||||||
}
|
}
|
||||||
: responseTime <= 500
|
: responseTime <= 500
|
||||||
? {
|
? {
|
||||||
category: "Fair",
|
category: "Fair",
|
||||||
main: theme.palette.success.main,
|
main: theme.palette.success.main,
|
||||||
bg: theme.palette.success.contrastText,
|
bg: theme.palette.success.lowContrast,
|
||||||
}
|
}
|
||||||
: responseTime <= 600
|
: responseTime <= 600
|
||||||
? {
|
? {
|
||||||
@@ -35,7 +35,7 @@ const ResponseGaugeChart = ({ avgResponseTime }) => {
|
|||||||
: {
|
: {
|
||||||
category: "Poor",
|
category: "Poor",
|
||||||
main: theme.palette.error.main,
|
main: theme.palette.error.main,
|
||||||
bg: theme.palette.error.contrastText,
|
bg: theme.palette.error.lowContrast,
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in new issue
Block a user