mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
DEL: remove invalid reference to isCatalyst
This commit is contained in:
parent
2b57c9e4e6
commit
b438a19119
@ -1,12 +1,11 @@
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { StatusBar, Linking } from 'react-native';
|
||||
import { StatusBar } from 'react-native';
|
||||
import { WebView } from 'react-native-webview';
|
||||
import { BlueLoading, SafeBlueArea } from '../../BlueComponents';
|
||||
import navigationStyle from '../../components/navigationStyle';
|
||||
import { LightningCustodianWallet, WatchOnlyWallet } from '../../class';
|
||||
import { BlueStorageContext } from '../../blue_modules/storage-context';
|
||||
import { isCatalyst } from '../../blue_modules/environment';
|
||||
import * as NavigationService from '../../NavigationService';
|
||||
|
||||
const currency = require('../../blue_modules/currency');
|
||||
@ -112,12 +111,7 @@ BuyBitcoin.navigationOptions = navigationStyle({
|
||||
});
|
||||
|
||||
BuyBitcoin.navigate = async wallet => {
|
||||
if (isCatalyst) {
|
||||
const uri = await BuyBitcoin.generateURL(wallet);
|
||||
Linking.openURL(uri);
|
||||
} else {
|
||||
NavigationService.navigate('BuyBitcoin', {
|
||||
walletID: wallet.getID(),
|
||||
});
|
||||
}
|
||||
NavigationService.navigate('BuyBitcoin', {
|
||||
walletID: wallet.getID(),
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user