diff --git a/Navigation.js b/Navigation.js index fb9c2c24b..bbde7f65d 100644 --- a/Navigation.js +++ b/Navigation.js @@ -15,6 +15,7 @@ import EncryptStorage from './screen/settings/encryptStorage'; import PlausibleDeniability from './screen/plausibledeniability'; import LightningSettings from './screen/settings/lightningSettings'; import ElectrumSettings from './screen/settings/electrumSettings'; +import Tools from './screen/settings/tools'; import GeneralSettings from './screen/settings/GeneralSettings'; import NetworkSettings from './screen/settings/NetworkSettings'; import NotificationSettings from './screen/settings/notificationSettings'; @@ -152,6 +153,7 @@ const WalletsRoot = () => { + { - + {Notifications.isNotificationsCapable && ( + navigate('NotificationSettings')} + testID="NotificationSettings" + chevron + /> + )} ); diff --git a/screen/settings/settings.js b/screen/settings/settings.js index efc81912a..b7fc478e4 100644 --- a/screen/settings/settings.js +++ b/screen/settings/settings.js @@ -6,7 +6,6 @@ import navigationStyle from '../../components/navigationStyle'; import { BlueListItem, BlueHeaderDefaultSub } from '../../BlueComponents'; import loc from '../../loc'; import { BlueStorageContext } from '../../blue_modules/storage-context'; -import Notifications from '../../blue_modules/notifications'; const styles = StyleSheet.create({ root: { @@ -29,15 +28,7 @@ const Settings = () => { navigate('Language')} testID="Language" chevron /> navigate('EncryptStorage')} testID="SecurityButton" chevron /> navigate('NetworkSettings')} testID="NetworkSettings" chevron /> - {Notifications.isNotificationsCapable && ( - navigate('NotificationSettings')} - testID="NotificationSettings" - chevron - /> - )} - navigate('SettingsPrivacy')} testID="SettingsPrivacy" chevron /> + navigate('Tools')} testID="Tools" chevron /> navigate('About')} testID="AboutButton" chevron /> ); diff --git a/screen/settings/tools.js b/screen/settings/tools.js new file mode 100644 index 000000000..49151497e --- /dev/null +++ b/screen/settings/tools.js @@ -0,0 +1,38 @@ +import React from 'react'; +import { ScrollView } from 'react-native'; +import { useNavigation } from '@react-navigation/native'; + +import navigationStyle from '../../components/navigationStyle'; +import { SafeBlueArea, BlueListItem } from '../../BlueComponents'; +import loc from '../../loc'; + +const NetworkSettings = () => { + const { navigate } = useNavigation(); + + const navigateToIsItMyAddress = () => { + navigate('IsItMyAddress'); + }; + + const navigateToBroadcast = () => { + navigate('Broadcast'); + }; + + const navigateToPrivacy = () => { + navigate('SettingsPrivacy'); + }; + + + return ( + + + + + + + + ); +}; + +NetworkSettings.navigationOptions = navigationStyle({}, opts => ({ ...opts, title: loc.settings.tools })); + +export default NetworkSettings; diff --git a/screen/wallets/details.js b/screen/wallets/details.js index 5438d2de4..46ebfda59 100644 --- a/screen/wallets/details.js +++ b/screen/wallets/details.js @@ -553,16 +553,6 @@ const WalletDetails = () => { {renderMarketplaceButton()} )} - {wallet.type !== LightningCustodianWallet.type && ( - <> - - - - )} - <> - - - {wallet.allowSignVerifyMessage() && ( <>