Browse Source

REF: Moved description label for onlaunch

snyk-fix-84644e4a03e171e392ba652f3dc364b5
marcosrdz 5 years ago
parent
commit
5f83d8c061
  1. 3
      screen/settings/GeneralSettings.js
  2. 5
      screen/settings/defaultView.js

3
screen/settings/GeneralSettings.js

@ -40,9 +40,6 @@ const GeneralSettings = () => {
{BlueApp.getWallets().length > 1 && (
<>
<BlueListItem component={TouchableOpacity} onPress={() => navigate('DefaultView')} title="On Launch" />
<BlueCard>
<BlueText>When enabled, BlueWallet will immediately open the selected wallet at launch.</BlueText>
</BlueCard>
</>
)}
{Platform.OS === 'ios' ? (

5
screen/settings/defaultView.js

@ -1,6 +1,6 @@
import React, { useEffect, useState } from 'react';
import { TouchableOpacity, View } from 'react-native';
import { SafeBlueArea, BlueNavigationStyle, BlueListItem } from '../../BlueComponents';
import { SafeBlueArea, BlueCard, BlueText, BlueNavigationStyle, BlueListItem } from '../../BlueComponents';
import OnAppLaunch from '../../class/onAppLaunch';
import { useNavigation } from 'react-navigation-hooks';
const BlueApp = require('../../BlueApp');
@ -58,6 +58,9 @@ const DefaultView = () => {
switched={viewAllWalletsEnabled}
onSwitch={onViewAllWalletsSwitchValueChanged}
/>
<BlueCard>
<BlueText>When disabled, BlueWallet will immediately open the selected wallet at launch.</BlueText>
</BlueCard>
{!viewAllWalletsEnabled && (
<BlueListItem title="Default into" component={TouchableOpacity} onPress={selectWallet} rightTitle={defaultWalletLabel} />
)}

Loading…
Cancel
Save