From 69f65fa3bd376e10245c3bd9034f43cd2b20fddd Mon Sep 17 00:00:00 2001 From: Thebora Kompanioni Date: Sat, 7 Jun 2025 11:50:28 +0200 Subject: [PATCH] feat: fast theme toggle in navbar (#904) --- src/components/Navbar.tsx | 17 ++++++----------- src/constants/debugFeatures.ts | 2 -- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 3c211094..5ec1c6bd 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -11,7 +11,6 @@ import { CurrentWallet, useCurrentWallet, useCurrentWalletInfo } from '../contex import { useServiceInfo, useSessionConnectionError } from '../context/ServiceInfoContext' import { routes } from '../constants/routes' import { AmountSats } from '../libs/JmWalletApi' -import { isDebugFeatureEnabled } from '../constants/debugFeatures' import styles from './Navbar.module.css' @@ -197,11 +196,9 @@ const TrailingNav = ({ joiningRoute, onClick }: TrailingNavProps) => { )} - {isDebugFeatureEnabled('fastThemeToggle') && ( - - - - )} + + + {t('navbar.menu')} - {isDebugFeatureEnabled('fastThemeToggle') && ( - - - - )} + + + {t('navbar.title')} diff --git a/src/constants/debugFeatures.ts b/src/constants/debugFeatures.ts index 9ef497a2..0bd4cf0a 100644 --- a/src/constants/debugFeatures.ts +++ b/src/constants/debugFeatures.ts @@ -7,7 +7,6 @@ interface DebugFeatures { importDummyMnemonicPhrase: boolean rescanChainPage: boolean allowFeeValuesReset: boolean - fastThemeToggle: boolean enableDemoEarnReport: boolean enableDemoOrderbook: boolean } @@ -23,7 +22,6 @@ const debugFeatures: DebugFeatures = { importDummyMnemonicPhrase: devMode, rescanChainPage: devMode, allowFeeValuesReset: devMode, - fastThemeToggle: devMode, enableDemoEarnReport: devMode, enableDemoOrderbook: devMode, }