mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 09:50:15 +01:00
Update SettingsContext.tsx
This commit is contained in:
parent
60990636f0
commit
457aaaf6b4
@ -187,19 +187,16 @@ export const SettingsProvider: React.FC<{ children: React.ReactNode }> = ({ chil
|
||||
setIsQuickActionsEnabled(value);
|
||||
}, []);
|
||||
|
||||
const setIsPrivacyBlurEnabledState = useCallback((value: boolean) => {
|
||||
setIsPrivacyBlurEnabled(value);
|
||||
if (!value) {
|
||||
presentAlert({ message: 'Privacy blur has been disabled.' });
|
||||
}
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
console.log(`Privacy blur: ${isPrivacyBlurEnabled}`);
|
||||
if (!isPrivacyBlurEnabled) {
|
||||
presentAlert({ message: 'Privacy blur has been disabled.' });
|
||||
}
|
||||
}, [isPrivacyBlurEnabled]);
|
||||
const setIsPrivacyBlurEnabledState = useCallback(
|
||||
(value: boolean) => {
|
||||
setIsPrivacyBlurEnabled(value);
|
||||
console.log(`Privacy blur: ${isPrivacyBlurEnabled}`);
|
||||
if (!value) {
|
||||
presentAlert({ message: 'Privacy blur has been disabled.' });
|
||||
}
|
||||
},
|
||||
[isPrivacyBlurEnabled],
|
||||
);
|
||||
|
||||
const value = useMemo(
|
||||
() => ({
|
||||
|
Loading…
Reference in New Issue
Block a user