From 6757c1711388cb8baaf463d10c21ec4625b63044 Mon Sep 17 00:00:00 2001 From: Martin Varmuza Date: Thu, 21 Nov 2024 16:31:40 +0100 Subject: [PATCH] Revert "feat(suite-desktop): autostat option only in debug" This reverts commit 0c1408a86730232cef107f256cec44c3e4b8ae59. --- .../src/views/settings/SettingsGeneral/SettingsGeneral.tsx | 4 +--- packages/suite/src/views/suite/bridge-requested/index.tsx | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/suite/src/views/settings/SettingsGeneral/SettingsGeneral.tsx b/packages/suite/src/views/settings/SettingsGeneral/SettingsGeneral.tsx index 93edbcac248..7b78b1573fa 100644 --- a/packages/suite/src/views/settings/SettingsGeneral/SettingsGeneral.tsx +++ b/packages/suite/src/views/settings/SettingsGeneral/SettingsGeneral.tsx @@ -8,7 +8,6 @@ import { selectHasExperimentalFeature, selectIsSettingsDesktopAppPromoBannerShown, selectTorState, - selectIsDebugModeActive, } from 'src/reducers/suite/suiteReducer'; import { selectEnabledNetworks } from 'src/reducers/wallet/settingsReducer'; import { selectSelectedProviderForLabels } from 'src/reducers/suite/metadataReducer'; @@ -58,7 +57,6 @@ export const SettingsGeneral = () => { const isMetadataEnabled = metadata.enabled && !metadata.initiating; const isProviderConnected = useSelector(selectSelectedProviderForLabels); - const isDebugModeActive = useSelector(selectIsDebugModeActive); return ( @@ -104,7 +102,7 @@ export const SettingsGeneral = () => { - {isDesktop() && isDebugModeActive && ( + {isDesktop() && ( } icon="plugs"> diff --git a/packages/suite/src/views/suite/bridge-requested/index.tsx b/packages/suite/src/views/suite/bridge-requested/index.tsx index 209b75d7ae0..d9497a2f5aa 100644 --- a/packages/suite/src/views/suite/bridge-requested/index.tsx +++ b/packages/suite/src/views/suite/bridge-requested/index.tsx @@ -7,10 +7,9 @@ import { desktopApi } from '@trezor/suite-desktop-api'; import { isDesktop } from '@trezor/env-utils'; import { spacings } from '@trezor/theme'; -import { selectIsDebugModeActive } from 'src/reducers/suite/suiteReducer'; import { Translation, Modal, Metadata } from 'src/components/suite'; import { goto } from 'src/actions/suite/routerActions'; -import { useDispatch, useLayout, useSelector } from 'src/hooks/suite'; +import { useDispatch, useLayout } from 'src/hooks/suite'; import { AutoStart } from 'src/views/settings/SettingsGeneral/AutoStart'; const StyledModal = styled(Modal)` @@ -51,7 +50,6 @@ export const BridgeRequested = () => { }; useLayout('Bridge'); - const isDebugModeActive = useSelector(selectIsDebugModeActive); if (confirmGoToWallet) { return ( @@ -102,7 +100,7 @@ export const BridgeRequested = () => { - {isDesktop() && isDebugModeActive && ( + {isDesktop() && ( <>