aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/common')
-rw-r--r--modern/src/common/formatter.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/modern/src/common/formatter.js b/modern/src/common/formatter.js
index 0ff4e741..32df04c2 100644
--- a/modern/src/common/formatter.js
+++ b/modern/src/common/formatter.js
@@ -104,21 +104,21 @@ export const formatCoordinate = (key, value, unit) => {
export const getStatusColor = (status) => {
switch (status) {
case 'online':
- return 'green';
+ return 'positive';
case 'offline':
- return 'red';
+ return 'negative';
case 'unknown':
default:
- return 'gray';
+ return 'neutral';
}
};
export const getBatteryStatus = (batteryLevel) => {
if (batteryLevel >= 70) {
- return 'green';
+ return 'positive';
}
if (batteryLevel > 30) {
- return 'gray';
+ return 'neutral';
}
- return 'red';
+ return 'negative';
};