Skip to content

Commit

Permalink
Revert "feat(suite-desktop): autostat option only in debug"
Browse files Browse the repository at this point in the history
This reverts commit 0c1408a.
  • Loading branch information
mroz22 authored and martykan committed Nov 28, 2024
1 parent 12af705 commit 6757c17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -58,7 +57,6 @@ export const SettingsGeneral = () => {

const isMetadataEnabled = metadata.enabled && !metadata.initiating;
const isProviderConnected = useSelector(selectSelectedProviderForLabels);
const isDebugModeActive = useSelector(selectIsDebugModeActive);

return (
<SettingsLayout data-testid="@settings/index">
Expand Down Expand Up @@ -104,7 +102,7 @@ export const SettingsGeneral = () => {
<EnableViewOnly />
</SettingsSection>

{isDesktop() && isDebugModeActive && (
{isDesktop() && (
<SettingsSection title={<Translation id="TR_TREZOR_CONNECT" />} icon="plugs">
<AutoStart />
<ShowOnTray />
Expand Down
6 changes: 2 additions & 4 deletions packages/suite/src/views/suite/bridge-requested/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)`
Expand Down Expand Up @@ -51,7 +50,6 @@ export const BridgeRequested = () => {
};

useLayout('Bridge');
const isDebugModeActive = useSelector(selectIsDebugModeActive);

if (confirmGoToWallet) {
return (
Expand Down Expand Up @@ -102,7 +100,7 @@ export const BridgeRequested = () => {
<Metadata title="Bridge | Trezor Suite" />
<StyledImage image="CONNECT_DEVICE" width="360" />

{isDesktop() && isDebugModeActive && (
{isDesktop() && (
<>
<Text
typographyStyle="hint"
Expand Down

0 comments on commit 6757c17

Please sign in to comment.