Skip to content

Commit

Permalink
fix: remove hide balances from settings, ref LEA-1753
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Dec 18, 2024
1 parent a346259 commit 7180f9a
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions apps/mobile/src/app/(home)/settings/display/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { useLingui } from '@lingui/react';
import {
BitcoinCircleIcon,
DollarCircleIcon,
Eye1Icon,
PackageSecurityIcon,
PointerHandIcon,
SheetRef,
Expand All @@ -32,19 +31,13 @@ export default function SettingsDisplayScreen() {
const {
accountDisplayPreference,
bitcoinUnitPreference,
changePrivacyModePreference,
changeHapticsPreference,
fiatCurrencyPreference,
privacyModePreference,
hapticsPreference,
themePreference,
} = useSettings();
const { i18n } = useLingui();

function onUpdatePrivacyMode() {
changePrivacyModePreference(privacyModePreference === 'visible' ? 'hidden' : 'visible');
}

function onUpdateHapticsPreference() {
changeHapticsPreference(hapticsPreference === 'enabled' ? 'disabled' : 'enabled');
}
Expand Down Expand Up @@ -123,22 +116,7 @@ export default function SettingsDisplayScreen() {
accountIdentifierSheetRef.current?.present();
}}
/>
{isFeatureEnabled() && (
<SettingsListItem
title={t({
id: 'display.privacy_mode.cell_title',
message: 'Hide home balance',
})}
caption={t({
id: 'display.privacy_mode.cell_caption',
message: 'Tap your balance to quickly toggle this setting',
})}
icon={<Eye1Icon />}
type="switch"
onSwitchValueChange={() => onUpdatePrivacyMode()}
switchValue={privacyModePreference === 'hidden'}
/>
)}

{isFeatureEnabled() && (
<SettingsListItem
title={t({
Expand Down

0 comments on commit 7180f9a

Please sign in to comment.