Added number modification

This commit is contained in:
2020-06-15 20:29:27 +02:00
parent 1177ac1c61
commit 7980788687
6 changed files with 110 additions and 25 deletions
+13
View File
@@ -42,3 +42,16 @@ export function stateToEmoji(state) {
return "🔴";
}
}
export function stateToColor(state) {
switch (state) {
case 0:
return "status-unknown";
case 1:
return "status-ok";
case 2:
return "status-warning";
case 3:
return "status-error";
}
}