diff --git a/frontend/src/routes/_authenticated/tenants/$tenantId/devices/$deviceId.tsx b/frontend/src/routes/_authenticated/tenants/$tenantId/devices/$deviceId.tsx index b638af7..0c7f0a6 100644 --- a/frontend/src/routes/_authenticated/tenants/$tenantId/devices/$deviceId.tsx +++ b/frontend/src/routes/_authenticated/tenants/$tenantId/devices/$deviceId.tsx @@ -188,34 +188,17 @@ function EditDeviceDialog({ } function TlsSecurityBadge({ tlsMode }: { tlsMode: string }) { - const config: Record = { - portal_ca: { - label: 'CA Verified', - icon: ShieldCheck, - className: 'text-success border-success/50 bg-success/10', - }, - auto: { - label: 'Self-Signed TLS', - icon: Shield, - className: 'text-warning border-warning/50 bg-warning/10', - }, - insecure: { - label: 'Insecure TLS', - icon: ShieldAlert, - className: 'text-orange-400 border-orange-400/50 bg-orange-400/10', - }, - plain: { - label: 'Plain-Text (Insecure)', - icon: ShieldOff, - className: 'text-error border-error/50 bg-error/10', - }, + const config: Record = { + portal_ca: { label: 'CA Verified', icon: ShieldCheck, color: 'text-success' }, + auto: { label: 'Self-Signed TLS', icon: Shield, color: 'text-warning' }, + insecure: { label: 'Insecure TLS', icon: ShieldAlert, color: 'text-warning' }, + plain: { label: 'Plain-Text', icon: ShieldOff, color: 'text-error' }, } const c = config[tlsMode] ?? config.auto const Icon = c.icon return ( - + - {c.label} ) }