diff --git a/screen/wallets/import.js b/screen/wallets/import.js index 92ea5290d..da93bab1c 100644 --- a/screen/wallets/import.js +++ b/screen/wallets/import.js @@ -23,7 +23,7 @@ import loc from '../../loc'; import { getSystemName } from 'react-native-device-info'; import RNFS from 'react-native-fs'; import DocumentPicker from 'react-native-document-picker'; -import ScanQRCode from '../send/ScanQRCode'; +import { presentCameraNotAuthorizedAlert } from '../../class/camera'; const LocalQRCode = require('@remobile/react-native-qrcode-local-image'); const isDesktop = getSystemName() === 'Mac OS X'; @@ -149,7 +149,7 @@ const WalletsImport = () => { } }); } else if (response.error) { - ScanQRCode.presentCameraNotAuthorizedAlert(response.error); + presentCameraNotAuthorizedAlert(response.error); } }, ); diff --git a/screen/wallets/list.js b/screen/wallets/list.js index 02a3ffb4c..b45c958f0 100644 --- a/screen/wallets/list.js +++ b/screen/wallets/list.js @@ -25,7 +25,7 @@ import Clipboard from '@react-native-community/clipboard'; import loc from '../../loc'; import { FContainer, FButton } from '../../components/FloatButtons'; import { getSystemName, isTablet } from 'react-native-device-info'; -import ScanQRCode from '../send/ScanQRCode'; +import { presentCameraNotAuthorizedAlert } from '../../class/camera'; import { useFocusEffect, useNavigation, useRoute, useTheme } from '@react-navigation/native'; const EV = require('../../blue_modules/events'); const A = require('../../blue_modules/analytics'); @@ -480,7 +480,7 @@ const WalletsList = () => { } }); } else if (response.error) { - ScanQRCode.presentCameraNotAuthorizedAlert(response.error); + presentCameraNotAuthorizedAlert(response.error); } }, );