fix percentage uptimePoor

This commit is contained in:
Caio Cabral committed 2025-01-11 09:54:11 -05:00
1 parent dbd351b2f1
commit d027407562
4 files changed
+5 -5

No files matched your search

@@ -54,7 +54,7 @@ const CustomGauge = ({ progress = 0, radius = 70, strokeWidth = 15, threshold =
const fillColor =
progressWithinRange > threshold
? theme.palette.percentage.uptimePoor
? theme.palette.error.main
: theme.palette.primary.main;
return (
+2 -2
View File
@@ -58,7 +58,7 @@ function Gauge({ progressValue, width = DEFAULT_WIDTH }) {
const chartColor =
progressValue > PROGRESS_THRESHOLD
? theme.palette.primary.main
: theme.palette.percentage.uptimePoor;
: theme.palette.error.main;
const chartData = [
CHART_MAXIMUM_DATA,
{
@@ -82,7 +82,7 @@ function Gauge({ progressValue, width = DEFAULT_WIDTH }) {
fill={
progressValue > PROGRESS_THRESHOLD
? theme.palette.primary.main
: theme.palette.percentage.uptimePoor
: theme.palette.error.main
}
background={{ fill: theme.palette.primary.lowContrast }}
label={{