BlueWallet/screen/settings/tools.js
Marcos Rodriguez Velez 63b1842699
FIX: Remove padding
2024-01-13 10:56:29 -04:00

35 lines
1.2 KiB
JavaScript

import React from 'react';
import { ScrollView } from 'react-native';
import { useNavigation } from '@react-navigation/native';
import navigationStyle from '../../components/navigationStyle';
import loc from '../../loc';
import ListItem from '../../components/ListItem';
const NetworkSettings = () => {
const { navigate } = useNavigation();
const navigateToIsItMyAddress = () => {
navigate('IsItMyAddress');
};
const navigateToBroadcast = () => {
navigate('Broadcast');
};
const navigateToGenerateWord = () => {
navigate('GenerateWord');
};
return (
<ScrollView contentInsetAdjustmentBehavior="automatic" automaticallyAdjustContentInsets>
<ListItem title={loc.is_it_my_address.title} onPress={navigateToIsItMyAddress} testID="IsItMyAddress" chevron />
<ListItem title={loc.settings.network_broadcast} onPress={navigateToBroadcast} testID="Broadcast" chevron />
<ListItem title={loc.autofill_word.title} onPress={navigateToGenerateWord} testID="GenerateWord" chevron />
</ScrollView>
);
};
NetworkSettings.navigationOptions = navigationStyle({}, opts => ({ ...opts, headerTitle: loc.settings.tools }));
export default NetworkSettings;