2024-05-20 10:54:13 +01:00
|
|
|
import { useNavigation } from '@react-navigation/native';
|
2020-07-20 16:38:46 +03:00
|
|
|
import React from 'react';
|
2021-03-22 07:54:17 -04:00
|
|
|
import { ScrollView } from 'react-native';
|
2024-05-20 10:54:13 +01:00
|
|
|
|
2021-03-30 20:12:29 +02:00
|
|
|
import Notifications from '../../blue_modules/notifications';
|
2023-12-16 17:44:35 -04:00
|
|
|
import ListItem from '../../components/ListItem';
|
2024-05-20 10:54:13 +01:00
|
|
|
import loc from '../../loc';
|
2020-07-20 16:38:46 +03:00
|
|
|
|
2020-03-29 23:41:02 -04:00
|
|
|
const NetworkSettings = () => {
|
|
|
|
const { navigate } = useNavigation();
|
|
|
|
|
2020-07-15 13:32:59 -04:00
|
|
|
const navigateToElectrumSettings = () => {
|
|
|
|
navigate('ElectrumSettings');
|
|
|
|
};
|
|
|
|
|
|
|
|
const navigateToLightningSettings = () => {
|
|
|
|
navigate('LightningSettings');
|
|
|
|
};
|
|
|
|
|
2020-07-20 16:38:46 +03:00
|
|
|
return (
|
2024-01-13 10:56:29 -04:00
|
|
|
<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>
|
2020-03-29 23:41:02 -04:00
|
|
|
);
|
|
|
|
};
|
2020-12-25 19:09:53 +03:00
|
|
|
|
2020-03-29 23:41:02 -04:00
|
|
|
export default NetworkSettings;
|