mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
33 lines
1003 B
JavaScript
33 lines
1003 B
JavaScript
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');
|
|
};
|
|
|
|
return (
|
|
<SafeBlueArea>
|
|
<ScrollView>
|
|
<BlueListItem title={loc.is_it_my_address.title} onPress={navigateToIsItMyAddress} testID="IsItMyAddress" chevron />
|
|
<BlueListItem title={loc.settings.network_broadcast} onPress={navigateToBroadcast} testID="Broadcast" chevron />
|
|
</ScrollView>
|
|
</SafeBlueArea>
|
|
);
|
|
};
|
|
|
|
NetworkSettings.navigationOptions = navigationStyle({}, opts => ({ ...opts, headerTitle: loc.settings.tools }));
|
|
|
|
export default NetworkSettings;
|