mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +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 decryptStorage = BlueApp.decryptStorage;
|
||||||
const isPasswordInUse = BlueApp.isPasswordInUse;
|
const isPasswordInUse = BlueApp.isPasswordInUse;
|
||||||
const cachedPassword = BlueApp.cachedPassword;
|
const cachedPassword = BlueApp.cachedPassword;
|
||||||
const setisAdvancedModeEnabled = BlueApp.setisAdvancedModeEnabled;
|
const setIsAdvancedModeEnabled = BlueApp.setIsAdvancedModeEnabled;
|
||||||
const getHodlHodlSignatureKey = BlueApp.getHodlHodlSignatureKey;
|
const getHodlHodlSignatureKey = BlueApp.getHodlHodlSignatureKey;
|
||||||
const addHodlHodlContract = BlueApp.addHodlHodlContract;
|
const addHodlHodlContract = BlueApp.addHodlHodlContract;
|
||||||
const getHodlHodlContracts = BlueApp.getHodlHodlContracts;
|
const getHodlHodlContracts = BlueApp.getHodlHodlContracts;
|
||||||
@ -265,7 +265,7 @@ export const BlueStorageProvider = ({ children }) => {
|
|||||||
getHodlHodlApiKey,
|
getHodlHodlApiKey,
|
||||||
decryptStorage,
|
decryptStorage,
|
||||||
isPasswordInUse,
|
isPasswordInUse,
|
||||||
setisAdvancedModeEnabled,
|
setIsAdvancedModeEnabled,
|
||||||
setPreferredFiatCurrency,
|
setPreferredFiatCurrency,
|
||||||
preferredFiatCurrency,
|
preferredFiatCurrency,
|
||||||
setLanguage,
|
setLanguage,
|
||||||
|
@ -15,7 +15,7 @@ const styles = StyleSheet.create({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const GeneralSettings = () => {
|
const GeneralSettings = () => {
|
||||||
const { isAdvancedModeEnabled, setisAdvancedModeEnabled, wallets, isHandOffUseEnabled, setIsHandOffUseEnabledAsyncStorage } =
|
const { isAdvancedModeEnabled, setIsAdvancedModeEnabled, wallets, isHandOffUseEnabled, setIsHandOffUseEnabledAsyncStorage } =
|
||||||
useContext(BlueStorageContext);
|
useContext(BlueStorageContext);
|
||||||
const [isLoading, setIsLoading] = useState(true);
|
const [isLoading, setIsLoading] = useState(true);
|
||||||
const [isAdvancedModeSwitchEnabled, setIsAdvancedModeSwitchEnabled] = useState(false);
|
const [isAdvancedModeSwitchEnabled, setIsAdvancedModeSwitchEnabled] = useState(false);
|
||||||
@ -23,7 +23,7 @@ const GeneralSettings = () => {
|
|||||||
const { navigate } = useNavigation();
|
const { navigate } = useNavigation();
|
||||||
const { colors } = useTheme();
|
const { colors } = useTheme();
|
||||||
const onAdvancedModeSwitch = async value => {
|
const onAdvancedModeSwitch = async value => {
|
||||||
await setisAdvancedModeEnabled(value);
|
await setIsAdvancedModeEnabled(value);
|
||||||
setIsAdvancedModeSwitchEnabled(value);
|
setIsAdvancedModeSwitchEnabled(value);
|
||||||
};
|
};
|
||||||
const onLegacyURv1Switch = async value => {
|
const onLegacyURv1Switch = async value => {
|
||||||
|
Loading…
Reference in New Issue
Block a user