From d027407562e99bdcfd985c025b6f7168bcdfef32 Mon Sep 17 00:00:00 2001 From: Caio Cabral Date: Sat, 11 Jan 2025 09:54:11 -0500 Subject: [PATCH] fix percentage uptimePoor --- Client/src/Components/Charts/CustomGauge/index.jsx | 2 +- Client/src/Components/Charts/Gauge/index.jsx | 4 ++-- Client/src/Pages/Infrastructure/index.jsx | 2 +- Client/src/Pages/Uptime/Home/UptimeTable/index.jsx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Client/src/Components/Charts/CustomGauge/index.jsx b/Client/src/Components/Charts/CustomGauge/index.jsx index 6179a4929..255b32067 100644 --- a/Client/src/Components/Charts/CustomGauge/index.jsx +++ b/Client/src/Components/Charts/CustomGauge/index.jsx @@ -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 ( diff --git a/Client/src/Components/Charts/Gauge/index.jsx b/Client/src/Components/Charts/Gauge/index.jsx index 96d047a53..ffe552a05 100644 --- a/Client/src/Components/Charts/Gauge/index.jsx +++ b/Client/src/Components/Charts/Gauge/index.jsx @@ -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={{ diff --git a/Client/src/Pages/Infrastructure/index.jsx b/Client/src/Pages/Infrastructure/index.jsx index 806e85bbd..6179007fc 100644 --- a/Client/src/Pages/Infrastructure/index.jsx +++ b/Client/src/Pages/Infrastructure/index.jsx @@ -151,7 +151,7 @@ function Infrastructure() { .toString(); const percentageColor = monitor.uptimePercentage < 0.25 - ? theme.palette.percentage.uptimePoor + ? theme.palette.error.main : monitor.uptimePercentage < 0.5 ? theme.palette.percentage.uptimeFair : monitor.uptimePercentage < 0.75 diff --git a/Client/src/Pages/Uptime/Home/UptimeTable/index.jsx b/Client/src/Pages/Uptime/Home/UptimeTable/index.jsx index 4853f5a94..552c8ec19 100644 --- a/Client/src/Pages/Uptime/Home/UptimeTable/index.jsx +++ b/Client/src/Pages/Uptime/Home/UptimeTable/index.jsx @@ -250,7 +250,7 @@ const MonitorTable = ({ isAdmin, filter, setIsSearching, isSearching, handlePaus percentageColor = /* TODO colors update */ monitor.uptimePercentage < 0.25 - ? theme.palette.percentage.uptimePoor + ? theme.palette.error.main : monitor.uptimePercentage < 0.5 ? theme.palette.percentage.uptimeFair : monitor.uptimePercentage < 0.75