diff --git a/frontend/src/pages/Devices.tsx b/frontend/src/pages/Devices.tsx index 31c281e..1a0d070 100644 --- a/frontend/src/pages/Devices.tsx +++ b/frontend/src/pages/Devices.tsx @@ -24,15 +24,27 @@ import { function Ssids({ ssids }: { ssids: string[] }) { if (ssids.length === 0) return - const extra = ssids.length - 1 return ( - - - {ssids[0]} - {extra > 0 && ( - (and {extra} more…) - )} - +
+ {ssids.map((ssid) => ( + + + {ssid} + + ))} +
+ ) +} + +function Ips({ value }: { value: string | null }) { + const ips = value?.split(',').map((ip) => ip.trim()).filter(Boolean) ?? [] + if (ips.length === 0) return + return ( +
+ {ips.map((ip) => ( + {ip} + ))} +
) } @@ -99,7 +111,9 @@ export function Devices() { devices.map((d) => ( {d.ap_mac} - {d.nasipaddress ?? '—'} + + +