mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 15:04:50 +01:00
FIX: Dont display Tor text in catalyst
This commit is contained in:
parent
2ddea48112
commit
4c123446d4
3 changed files with 8 additions and 3 deletions
|
@ -5,6 +5,7 @@ import Notifications from '../../blue_modules/notifications';
|
|||
import navigationStyle from '../../components/navigationStyle';
|
||||
import { SafeBlueArea, BlueListItem } from '../../BlueComponents';
|
||||
import loc from '../../loc';
|
||||
import { isCatalyst } from '../../blue_modules/environment';
|
||||
|
||||
const NetworkSettings = () => {
|
||||
const { navigate } = useNavigation();
|
||||
|
@ -34,7 +35,7 @@ const NetworkSettings = () => {
|
|||
chevron
|
||||
/>
|
||||
)}
|
||||
<BlueListItem title={loc.settings.tor_settings} onPress={navigateToTorSettings} testID="TorSettings" chevron />
|
||||
{!isCatalyst && <BlueListItem title={loc.settings.tor_settings} onPress={navigateToTorSettings} testID="TorSettings" chevron />}
|
||||
</ScrollView>
|
||||
</SafeBlueArea>
|
||||
);
|
||||
|
|
|
@ -33,6 +33,7 @@ import {
|
|||
BlueDismissKeyboardInputAccessory,
|
||||
} from '../../BlueComponents';
|
||||
import { BlueCurrentTheme } from '../../components/themes';
|
||||
import { isCatalyst } from '../../blue_modules/environment';
|
||||
import ReactNativeHapticFeedback from 'react-native-haptic-feedback';
|
||||
|
||||
const BlueElectrum = require('../../blue_modules/BlueElectrum');
|
||||
|
@ -267,7 +268,9 @@ export default class ElectrumSettings extends Component {
|
|||
<View style={styles.inputWrap}>
|
||||
<TextInput
|
||||
placeholder={
|
||||
loc.formatString(loc.settings.electrum_host, { example: '111.222.333.111' }) + ' (' + loc.settings.tor_supported + ')'
|
||||
loc.formatString(loc.settings.electrum_host, { example: '111.222.333.111' }) + !isCatalyst
|
||||
? ' (' + loc.settings.tor_supported + ')'
|
||||
: ''
|
||||
}
|
||||
value={this.state.host}
|
||||
onChangeText={text => this.setState({ host: text.trim() })}
|
||||
|
|
|
@ -12,6 +12,7 @@ import { LightningCustodianWallet } from '../../class/wallets/lightning-custodia
|
|||
import loc from '../../loc';
|
||||
import { BlueCurrentTheme } from '../../components/themes';
|
||||
import DeeplinkSchemaMatch from '../../class/deeplink-schema-match';
|
||||
import { isCatalyst } from '../../blue_modules/environment';
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
uri: {
|
||||
|
@ -147,7 +148,7 @@ const LightningSettings = () => {
|
|||
/>
|
||||
</View>
|
||||
<BlueSpacing20 />
|
||||
<BlueText style={[styles.torSupported]}>{loc.settings.tor_supported}</BlueText>
|
||||
{!isCatalyst && <BlueText style={[styles.torSupported]}>{loc.settings.tor_supported}</BlueText>}
|
||||
<BlueSpacing20 />
|
||||
<BlueButtonLink title={loc.wallets.import_scan_qr} testID="ImportScan" onPress={importScan} />
|
||||
<BlueSpacing20 />
|
||||
|
|
Loading…
Add table
Reference in a new issue