Skip to content

Commit

Permalink
only show watertap not nawi
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelPesce committed Oct 30, 2024
1 parent 82361c7 commit 0bb1f4f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions electron/ui/src/components/Boilerplate/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ export default function Header({theme, hasTheme, changeTheme}) {
>
<MenuItem className="view-logs" onClick={handleShowLogs}>View Logs</MenuItem>
{Object.keys(themes).map((key, idx) => {
if (key != localStorage.getItem("theme")) return (
<MenuItem key={key} className="change_theme" onClick={() => changeTheme(key)}>Switch to {key}</MenuItem>
let current_theme = localStorage.getItem("theme")
if (key !== current_theme && key !== "watertap") return (
<MenuItem key={key} className="change_theme" onClick={() => changeTheme(key)}>Switch to {key.replace("nawi", "watertap")}</MenuItem>
)
})}
<MenuItem className="return-home" onClick={handleNavigateHome}>Return to list page</MenuItem>
Expand Down

0 comments on commit 0bb1f4f

Please sign in to comment.