diff --git a/screen/settings/GeneralSettings.js b/screen/settings/GeneralSettings.js index 42b21b859..66558ec18 100644 --- a/screen/settings/GeneralSettings.js +++ b/screen/settings/GeneralSettings.js @@ -1,10 +1,10 @@ import React, { useEffect, useState } from 'react'; -import { ScrollView, Platform } from 'react-native'; +import { ScrollView, Platform, TouchableOpacity } from 'react-native'; import { BlueLoading, BlueText, BlueSpacing20, BlueListItem, SafeBlueArea, BlueNavigationStyle, BlueCard } from '../../BlueComponents'; import PropTypes from 'prop-types'; import { AppStorage } from '../../class'; +import { useNavigation } from 'react-navigation-hooks'; import HandoffSettings from '../../class/handoff'; - let BlueApp: AppStorage = require('../../BlueApp'); let loc = require('../../loc'); @@ -12,7 +12,7 @@ const GeneralSettings = () => { const [isLoading, setIsLoading] = useState(true); const [isAdancedModeEnabled, setIsAdancedModeEnabled] = useState(false); const [isHandoffUseEnabled, setIsHandoffUseEnabled] = useState(false); - + const { navigate } = useNavigation(); const onAdvancedModeSwitch = async value => { await BlueApp.setIsAdancedModeEnabled(value); setIsAdancedModeEnabled(value); @@ -37,6 +37,14 @@ const GeneralSettings = () => { + {BlueApp.getWallets().length > 1 && ( + <> + navigate('DefaultView')} title="On Launch" /> + + When enabled, BlueWallet will immediately open the selected wallet at launch. + + + )} {Platform.OS === 'ios' ? ( <> { @@ -21,9 +19,6 @@ const Settings = () => { navigate('GeneralSettings')} /> - {BlueApp.getWallets().length > 1 && ( - navigate('DefaultView')} title="On Launch" /> - )} navigate('EncryptStorage')} component={TouchableOpacity} testID="SecurityButton" /> navigate('LightningSettings')} /> navigate('Language')} />