From 8eaa86ae45f424a93d0d82a1068640f7f2d5062e Mon Sep 17 00:00:00 2001 From: Adam Shiervani Date: Tue, 20 May 2025 20:26:24 +0200 Subject: [PATCH] style(ui): update styling for access and network settings components (#487) * style(ui): update styling for access and network settings components * fix(ui): simplify conditional rendering in network settings component --- ui/src/routes/devices.$id.settings.access._index.tsx | 4 ++-- ui/src/routes/devices.$id.settings.network.tsx | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ui/src/routes/devices.$id.settings.access._index.tsx b/ui/src/routes/devices.$id.settings.access._index.tsx index f21927a..e0543b8 100644 --- a/ui/src/routes/devices.$id.settings.access._index.tsx +++ b/ui/src/routes/devices.$id.settings.access._index.tsx @@ -409,7 +409,7 @@ export default function SettingsAccessIndexRoute() { . -
+
- {!networkSettingsLoaded ? ( + {!networkSettingsLoaded && !networkState?.dhcp_lease ? (
@@ -402,7 +402,8 @@ export default function SettingsNetworkRoute() { /> - {!networkSettingsLoaded ? ( + {!networkSettingsLoaded && + !(networkState?.ipv6_addresses && networkState.ipv6_addresses.length > 0) ? (