Added number modification
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user