mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-24 07:28:07 +01:00
FIX: User wasnt able to paste on macOS
This commit is contained in:
parent
6424784d0b
commit
6de25d55da
1 changed files with 3 additions and 5 deletions
|
@ -3,8 +3,6 @@ import React, { useEffect, useState } from 'react';
|
||||||
import { Platform, View, Keyboard, StatusBar, StyleSheet } from 'react-native';
|
import { Platform, View, Keyboard, StatusBar, StyleSheet } from 'react-native';
|
||||||
import ReactNativeHapticFeedback from 'react-native-haptic-feedback';
|
import ReactNativeHapticFeedback from 'react-native-haptic-feedback';
|
||||||
import { useNavigation, useRoute, useTheme } from '@react-navigation/native';
|
import { useNavigation, useRoute, useTheme } from '@react-navigation/native';
|
||||||
import { getSystemName } from 'react-native-device-info';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
BlueFormMultiInput,
|
BlueFormMultiInput,
|
||||||
BlueButtonLink,
|
BlueButtonLink,
|
||||||
|
@ -18,7 +16,7 @@ import navigationStyle from '../../components/navigationStyle';
|
||||||
import Privacy from '../../blue_modules/Privacy';
|
import Privacy from '../../blue_modules/Privacy';
|
||||||
import WalletImport from '../../class/wallet-import';
|
import WalletImport from '../../class/wallet-import';
|
||||||
import loc from '../../loc';
|
import loc from '../../loc';
|
||||||
const isDesktop = getSystemName() === 'Mac OS X';
|
import { isCatalyst, isMacCatalina } from '../../blue_modules/environment';
|
||||||
const fs = require('../../blue_modules/fs');
|
const fs = require('../../blue_modules/fs');
|
||||||
|
|
||||||
const WalletsImport = () => {
|
const WalletsImport = () => {
|
||||||
|
@ -95,7 +93,7 @@ const WalletsImport = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const importScan = () => {
|
const importScan = () => {
|
||||||
if (isDesktop) {
|
if (isMacCatalina) {
|
||||||
fs.showActionSheet().then(onBarScanned);
|
fs.showActionSheet().then(onBarScanned);
|
||||||
} else {
|
} else {
|
||||||
navigation.navigate('ScanQRCodeRoot', {
|
navigation.navigate('ScanQRCodeRoot', {
|
||||||
|
@ -118,7 +116,7 @@ const WalletsImport = () => {
|
||||||
<BlueFormMultiInput
|
<BlueFormMultiInput
|
||||||
testID="MnemonicInput"
|
testID="MnemonicInput"
|
||||||
value={importText}
|
value={importText}
|
||||||
contextMenuHidden={getSystemName() !== 'Mac OS X'}
|
contextMenuHidden={!isCatalyst}
|
||||||
onChangeText={setImportText}
|
onChangeText={setImportText}
|
||||||
inputAccessoryViewID={BlueDoneAndDismissKeyboardInputAccessory.InputAccessoryViewID}
|
inputAccessoryViewID={BlueDoneAndDismissKeyboardInputAccessory.InputAccessoryViewID}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Reference in a new issue