refactor: dashboard page with client filter and utils (getStatusBorderColor)
This commit is contained in:
@@ -81,6 +81,21 @@ export function getStatusBgColor(status: string): string {
|
||||
}
|
||||
}
|
||||
|
||||
export function getStatusBorderColor(status: string): string {
|
||||
switch (status.toUpperCase()) {
|
||||
case 'ONLINE':
|
||||
return 'border-success/50'
|
||||
case 'OFFLINE':
|
||||
return 'border-gray-500/40'
|
||||
case 'ALERTA':
|
||||
return 'border-danger/50'
|
||||
case 'MANTENIMIENTO':
|
||||
return 'border-warning/50'
|
||||
default:
|
||||
return 'border-dark-100'
|
||||
}
|
||||
}
|
||||
|
||||
export function getSeverityColor(severity: string): string {
|
||||
switch (severity.toUpperCase()) {
|
||||
case 'CRITICAL':
|
||||
|
||||
Reference in New Issue
Block a user