mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-24 07:28:07 +01:00
FIX: Blur toggle inversed
This commit is contained in:
parent
2e4c3151fc
commit
09565c1d01
1 changed files with 5 additions and 6 deletions
|
@ -92,7 +92,7 @@ const SettingsPrivacy: React.FC = () => {
|
||||||
|
|
||||||
const onTemporaryScreenshotsValueChange = (value: boolean) => {
|
const onTemporaryScreenshotsValueChange = (value: boolean) => {
|
||||||
setIsLoading(SettingsPrivacySection.TemporaryScreenshots);
|
setIsLoading(SettingsPrivacySection.TemporaryScreenshots);
|
||||||
setIsPrivacyBlurEnabledState(value);
|
setIsPrivacyBlurEnabledState(!value);
|
||||||
setIsLoading(SettingsPrivacySection.None);
|
setIsLoading(SettingsPrivacySection.None);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -145,17 +145,13 @@ const SettingsPrivacy: React.FC = () => {
|
||||||
Component={TouchableWithoutFeedback}
|
Component={TouchableWithoutFeedback}
|
||||||
switch={{
|
switch={{
|
||||||
onValueChange: onTemporaryScreenshotsValueChange,
|
onValueChange: onTemporaryScreenshotsValueChange,
|
||||||
value: isPrivacyBlurEnabled,
|
value: !isPrivacyBlurEnabled,
|
||||||
disabled: isLoading === SettingsPrivacySection.All,
|
disabled: isLoading === SettingsPrivacySection.All,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<BlueCard>
|
<BlueCard>
|
||||||
<BlueText>{loc.settings.privacy_temporary_screenshots_instructions}</BlueText>
|
<BlueText>{loc.settings.privacy_temporary_screenshots_instructions}</BlueText>
|
||||||
</BlueCard>
|
</BlueCard>
|
||||||
|
|
||||||
<BlueSpacing20 />
|
|
||||||
<ListItem title={loc.settings.privacy_system_settings} chevron onPress={openApplicationSettings} testID="PrivacySystemSettings" />
|
|
||||||
<BlueSpacing20 />
|
|
||||||
<ListItem
|
<ListItem
|
||||||
title={loc.settings.privacy_do_not_track}
|
title={loc.settings.privacy_do_not_track}
|
||||||
Component={TouchableWithoutFeedback}
|
Component={TouchableWithoutFeedback}
|
||||||
|
@ -186,6 +182,9 @@ const SettingsPrivacy: React.FC = () => {
|
||||||
</BlueCard>
|
</BlueCard>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
<BlueSpacing20 />
|
||||||
|
<ListItem title={loc.settings.privacy_system_settings} chevron onPress={openApplicationSettings} testID="PrivacySystemSettings" />
|
||||||
<BlueSpacing20 />
|
<BlueSpacing20 />
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue