BlueWallet/screen/settings/NetworkSettings.js
2024-05-21 11:56:10 +01:00

37 lines
1.2 KiB
JavaScript

import { useNavigation } from '@react-navigation/native';
import React from 'react';
import { ScrollView } from 'react-native';
import Notifications from '../../blue_modules/notifications';
import ListItem from '../../components/ListItem';
import loc from '../../loc';
const NetworkSettings = () => {
const { navigate } = useNavigation();
const navigateToElectrumSettings = () => {
navigate('ElectrumSettings');
};
const navigateToLightningSettings = () => {
navigate('LightningSettings');
};
return (
<ScrollView contentInsetAdjustmentBehavior="automatic" automaticallyAdjustContentInsets>
<ListItem title={loc.settings.network_electrum} onPress={navigateToElectrumSettings} testID="ElectrumSettings" chevron />
<ListItem title={loc.settings.lightning_settings} onPress={navigateToLightningSettings} testID="LightningSettings" chevron />
{Notifications.isNotificationsCapable && (
<ListItem
title={loc.settings.notifications}
onPress={() => navigate('NotificationSettings')}
testID="NotificationSettings"
chevron
/>
)}
</ScrollView>
);
};
export default NetworkSettings;