diff options
author | Anton Tananaev <anton@traccar.org> | 2023-08-27 17:08:08 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-08-27 17:08:08 -0700 |
commit | d257aa2fb592c8def4ff40630914127575b87062 (patch) | |
tree | d55efd2bd145a9565bb4bc0d1f1f336bbf53dd2a /modern/src/common/util/formatter.js | |
parent | 778d626e5ca58f62b75ef070c5c347afa89a6de4 (diff) | |
download | trackermap-web-d257aa2fb592c8def4ff40630914127575b87062.tar.gz trackermap-web-d257aa2fb592c8def4ff40630914127575b87062.tar.bz2 trackermap-web-d257aa2fb592c8def4ff40630914127575b87062.zip |
Streamline theme palette
Diffstat (limited to 'modern/src/common/util/formatter.js')
-rw-r--r-- | modern/src/common/util/formatter.js | 10 |
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) => { |