mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
Merge pull request #6581 from BlueWallet/elec
FIX: Camera would not open in Electrum settings
This commit is contained in:
commit
596a9cd33d
@ -31,11 +31,12 @@ import { BlueCurrentTheme } from '../../components/themes';
|
||||
import { reloadAllTimelines } from '../../components/WidgetCommunication';
|
||||
import { BlueStorageContext } from '../../blue_modules/storage-context';
|
||||
import presentAlert from '../../components/Alert';
|
||||
import { requestCameraAuthorization } from '../../helpers/scan-qr';
|
||||
import { scanQrHelper } from '../../helpers/scan-qr';
|
||||
import Button from '../../components/Button';
|
||||
import ListItem from '../../components/ListItem';
|
||||
import triggerHapticFeedback, { HapticFeedbackTypes } from '../../blue_modules/hapticFeedback';
|
||||
import * as BlueElectrum from '../../blue_modules/BlueElectrum';
|
||||
import { navigationRef } from '../../NavigationService';
|
||||
|
||||
export default class ElectrumSettings extends Component {
|
||||
static contextType = BlueStorageContext;
|
||||
@ -225,17 +226,9 @@ export default class ElectrumSettings extends Component {
|
||||
});
|
||||
};
|
||||
|
||||
importScan = () => {
|
||||
requestCameraAuthorization().then(() =>
|
||||
this.props.navigation.navigate('ScanQRCodeRoot', {
|
||||
screen: 'ScanQRCode',
|
||||
params: {
|
||||
launchedBy: this.props.route.name,
|
||||
onBarScanned: this.onBarScanned,
|
||||
showFileImportButton: true,
|
||||
},
|
||||
}),
|
||||
);
|
||||
importScan = async () => {
|
||||
const scanned = await scanQrHelper(navigationRef.navigate, 'ElectrumSettings', true);
|
||||
this.onBarScanned(scanned);
|
||||
};
|
||||
|
||||
useSSLPortToggled = value => {
|
||||
|
Loading…
Reference in New Issue
Block a user