mirror of
https://github.com/RoboSats/robosats.git
synced 2025-08-03 13:00:01 +00:00

* Add SVG icons for map pins * Add federation basis and new coordinator form (#793) * Add new coordinator entry issue form * Add Federation basis * Fix eslint errors from F2F and fix languages * Redo eslint @typescript-eslint/strict-boolean-expressions * Robot Page working * Contexts Working * Garage Working * CurrentOrder working * Federation model working --------- Co-authored-by: Reckless_Satoshi <reckless.satoshi@protonmail.com> Co-authored-by: Reckless_Satoshi <90936742+Reckless-Satoshi@users.noreply.github.com>
10 lines
229 B
TypeScript
10 lines
229 B
TypeScript
export default function statusBadgeColor(status: string): 'success' | 'warning' | 'error' {
|
|
if (status === 'Active') {
|
|
return 'success';
|
|
}
|
|
if (status === 'Seen recently') {
|
|
return 'warning';
|
|
}
|
|
return 'error';
|
|
}
|