aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/util/formatter.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/common/util/formatter.js')
-rw-r--r--modern/src/common/util/formatter.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/modern/src/common/util/formatter.js b/modern/src/common/util/formatter.js
index 0f7d2cc8..b00896c2 100644
--- a/modern/src/common/util/formatter.js
+++ b/modern/src/common/util/formatter.js
@@ -100,9 +100,9 @@ export const formatCoordinate = (key, value, unit) => {
export const getStatusColor = (status) => {
switch (status) {
case 'online':
- return 'positive';
+ return 'success';
case 'offline':
- return 'negative';
+ return 'error';
case 'unknown':
default:
return 'neutral';
@@ -111,12 +111,12 @@ export const getStatusColor = (status) => {
export const getBatteryStatus = (batteryLevel) => {
if (batteryLevel >= 70) {
- return 'positive';
+ return 'success';
}
if (batteryLevel > 30) {
- return 'medium';
+ return 'warning';
}
- return 'negative';
+ return 'error';
};
export const formatNotificationTitle = (t, notification, includeId) => {