mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-18 21:35:21 +01:00
FIX: setIsAdvancedModeEnabled
This commit is contained in:
parent
861b9b7bfb
commit
7d9baab87b
@ -219,7 +219,7 @@ export const BlueStorageProvider = ({ children }) => {
|
||||
const decryptStorage = BlueApp.decryptStorage;
|
||||
const isPasswordInUse = BlueApp.isPasswordInUse;
|
||||
const cachedPassword = BlueApp.cachedPassword;
|
||||
const setisAdvancedModeEnabled = BlueApp.setisAdvancedModeEnabled;
|
||||
const setIsAdvancedModeEnabled = BlueApp.setIsAdvancedModeEnabled;
|
||||
const getHodlHodlSignatureKey = BlueApp.getHodlHodlSignatureKey;
|
||||
const addHodlHodlContract = BlueApp.addHodlHodlContract;
|
||||
const getHodlHodlContracts = BlueApp.getHodlHodlContracts;
|
||||
@ -265,7 +265,7 @@ export const BlueStorageProvider = ({ children }) => {
|
||||
getHodlHodlApiKey,
|
||||
decryptStorage,
|
||||
isPasswordInUse,
|
||||
setisAdvancedModeEnabled,
|
||||
setIsAdvancedModeEnabled,
|
||||
setPreferredFiatCurrency,
|
||||
preferredFiatCurrency,
|
||||
setLanguage,
|
||||
|
@ -15,7 +15,7 @@ const styles = StyleSheet.create({
|
||||
});
|
||||
|
||||
const GeneralSettings = () => {
|
||||
const { isAdvancedModeEnabled, setisAdvancedModeEnabled, wallets, isHandOffUseEnabled, setIsHandOffUseEnabledAsyncStorage } =
|
||||
const { isAdvancedModeEnabled, setIsAdvancedModeEnabled, wallets, isHandOffUseEnabled, setIsHandOffUseEnabledAsyncStorage } =
|
||||
useContext(BlueStorageContext);
|
||||
const [isLoading, setIsLoading] = useState(true);
|
||||
const [isAdvancedModeSwitchEnabled, setIsAdvancedModeSwitchEnabled] = useState(false);
|
||||
@ -23,7 +23,7 @@ const GeneralSettings = () => {
|
||||
const { navigate } = useNavigation();
|
||||
const { colors } = useTheme();
|
||||
const onAdvancedModeSwitch = async value => {
|
||||
await setisAdvancedModeEnabled(value);
|
||||
await setIsAdvancedModeEnabled(value);
|
||||
setIsAdvancedModeSwitchEnabled(value);
|
||||
};
|
||||
const onLegacyURv1Switch = async value => {
|
||||
|
Loading…
Reference in New Issue
Block a user