Skip to content

Commit

Permalink
feat(suite): moving experimental features outside debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavProchazka authored and marekrjpolak committed Jul 25, 2024
1 parent 1b65676 commit ff35846
Showing 1 changed file with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { SettingsLayout, SettingsSection } from 'src/components/settings';
import { Translation } from 'src/components/suite';
import { useLayoutSize, useSelector } from 'src/hooks/suite';
import {
selectIsDebugModeActive,
selectIsSettingsDesktopAppPromoBannerShown,
selectTorState,
} from 'src/reducers/suite/suiteReducer';
Expand Down Expand Up @@ -36,7 +35,6 @@ export const SettingsGeneral = () => {
selectIsSettingsDesktopAppPromoBannerShown,
);

const isDebug = useSelector(selectIsDebugModeActive);
const { isTorEnabled } = useSelector(selectTorState);
const enabledNetworks = useSelector(selectEnabledNetworks);
const desktopUpdate = useSelector(state => state.desktopUpdate);
Expand Down Expand Up @@ -93,15 +91,13 @@ export const SettingsGeneral = () => {
<EnableViewOnly />
</SettingsSection>

{(desktopUpdate.enabled || isDebug) && (
<SettingsSection
title={<Translation id="TR_EXPERIMENTAL_FEATURES" />}
icon="EXPERIMENTAL"
>
{desktopUpdate.enabled && <EarlyAccess />}
{isDebug && <Experimental />}
</SettingsSection>
)}
<SettingsSection
title={<Translation id="TR_EXPERIMENTAL_FEATURES" />}
icon="EXPERIMENTAL"
>
{desktopUpdate.enabled && <EarlyAccess />}
<Experimental />
</SettingsSection>
</SettingsLayout>
);
};

0 comments on commit ff35846

Please sign in to comment.