Merge pull request #6910 from BlueWallet/p

FIX: Blur toggle inversed
This commit is contained in:
GLaDOS 2024-08-13 22:21:45 +00:00 committed by GitHub
commit 3c6cd7deba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,7 +92,7 @@ const SettingsPrivacy: React.FC = () => {
const onTemporaryScreenshotsValueChange = (value: boolean) => {
setIsLoading(SettingsPrivacySection.TemporaryScreenshots);
setIsPrivacyBlurEnabledState(value);
setIsPrivacyBlurEnabledState(!value);
setIsLoading(SettingsPrivacySection.None);
};
@ -145,17 +145,13 @@ const SettingsPrivacy: React.FC = () => {
Component={TouchableWithoutFeedback}
switch={{
onValueChange: onTemporaryScreenshotsValueChange,
value: isPrivacyBlurEnabled,
value: !isPrivacyBlurEnabled,
disabled: isLoading === SettingsPrivacySection.All,
}}
/>
<BlueCard>
<BlueText>{loc.settings.privacy_temporary_screenshots_instructions}</BlueText>
</BlueCard>
<BlueSpacing20 />
<ListItem title={loc.settings.privacy_system_settings} chevron onPress={openApplicationSettings} testID="PrivacySystemSettings" />
<BlueSpacing20 />
<ListItem
title={loc.settings.privacy_do_not_track}
Component={TouchableWithoutFeedback}
@ -186,6 +182,9 @@ const SettingsPrivacy: React.FC = () => {
</BlueCard>
</>
)}
<BlueSpacing20 />
<ListItem title={loc.settings.privacy_system_settings} chevron onPress={openApplicationSettings} testID="PrivacySystemSettings" />
<BlueSpacing20 />
</ScrollView>
);