From 0bb1f4f872dc4284f88a7403d91937635aacf895 Mon Sep 17 00:00:00 2001 From: MichaelPesce Date: Wed, 30 Oct 2024 09:53:42 -0400 Subject: [PATCH] only show watertap not nawi --- electron/ui/src/components/Boilerplate/Header/Header.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/electron/ui/src/components/Boilerplate/Header/Header.js b/electron/ui/src/components/Boilerplate/Header/Header.js index f7c67ed..872b8aa 100644 --- a/electron/ui/src/components/Boilerplate/Header/Header.js +++ b/electron/ui/src/components/Boilerplate/Header/Header.js @@ -64,8 +64,9 @@ export default function Header({theme, hasTheme, changeTheme}) { > View Logs {Object.keys(themes).map((key, idx) => { - if (key != localStorage.getItem("theme")) return ( - changeTheme(key)}>Switch to {key} + let current_theme = localStorage.getItem("theme") + if (key !== current_theme && key !== "watertap") return ( + changeTheme(key)}>Switch to {key.replace("nawi", "watertap")} ) })} Return to list page