diff --git a/src/components/AddressDetails/AddressDetails.tsx b/src/components/AddressDetails/AddressDetails.tsx index 31d093e..ed35964 100644 --- a/src/components/AddressDetails/AddressDetails.tsx +++ b/src/components/AddressDetails/AddressDetails.tsx @@ -15,7 +15,8 @@ import { cryptos } from '../../types'; import { blockchains } from '@storage/blockchains'; -import CryptoJS from 'crypto-js'; +// eslint-disable-next-line @typescript-eslint/no-var-requires +const CryptoJS = require('crypto-js'); const AddressDetails = (props: { actionStatus: (status: boolean) => void }) => { const { identityChain } = useAppSelector((state) => state.ssp); diff --git a/src/components/SSPKeyDetails/SSKeyDetails.tsx b/src/components/SSPKeyDetails/SSKeyDetails.tsx index 4a35ca9..d4b1cbc 100644 --- a/src/components/SSPKeyDetails/SSKeyDetails.tsx +++ b/src/components/SSPKeyDetails/SSKeyDetails.tsx @@ -19,7 +19,8 @@ import { getMasterXpriv, getMasterXpub } from '../../lib/wallet'; import { blockchains } from '@storage/blockchains'; -import CryptoJS from 'crypto-js'; +// eslint-disable-next-line @typescript-eslint/no-var-requires +const CryptoJS = require('crypto-js'); const SSPKeyDetails = (props: { actionStatus: (status: boolean) => void }) => { // ssp key seed phrase, xpriv, xpub diff --git a/src/components/SyncSuccess/SyncSuccess.tsx b/src/components/SyncSuccess/SyncSuccess.tsx index 2c96319..8842864 100644 --- a/src/components/SyncSuccess/SyncSuccess.tsx +++ b/src/components/SyncSuccess/SyncSuccess.tsx @@ -19,7 +19,8 @@ import { generateMultisigAddress } from '../../lib/wallet'; import { useAppSelector } from '../../hooks'; -import CryptoJS from 'crypto-js'; +// eslint-disable-next-line @typescript-eslint/no-var-requires +const CryptoJS = require('crypto-js'); const SyncSuccess = (props: { chain: keyof cryptos; diff --git a/src/screens/Create/Create.tsx b/src/screens/Create/Create.tsx index 810810a..c9f5e71 100644 --- a/src/screens/Create/Create.tsx +++ b/src/screens/Create/Create.tsx @@ -19,7 +19,8 @@ import { useTheme } from '../../hooks'; import { useKeyboardVisible } from '../../hooks/keyboardVisible'; import { getUniqueId } from 'react-native-device-info'; import EncryptedStorage from 'react-native-encrypted-storage'; -import CryptoJS from 'crypto-js'; +// eslint-disable-next-line @typescript-eslint/no-var-requires +const CryptoJS = require('crypto-js'); import { blockchains } from '@storage/blockchains'; diff --git a/src/screens/Home/Home.tsx b/src/screens/Home/Home.tsx index 83528d6..0c85af1 100644 --- a/src/screens/Home/Home.tsx +++ b/src/screens/Home/Home.tsx @@ -36,7 +36,8 @@ import { } from '../../types'; import { blockchains } from '@storage/blockchains'; -import CryptoJS from 'crypto-js'; +// eslint-disable-next-line @typescript-eslint/no-var-requires +const CryptoJS = require('crypto-js'); import { getMasterXpriv, diff --git a/src/screens/Restore/Restore.tsx b/src/screens/Restore/Restore.tsx index 17aa8f9..19beec3 100644 --- a/src/screens/Restore/Restore.tsx +++ b/src/screens/Restore/Restore.tsx @@ -23,7 +23,8 @@ import { blockchains } from '@storage/blockchains'; import { wordlist } from '@scure/bip39/wordlists/english'; import ToastNotif from '../../components/Toast/Toast'; -import CryptoJS from 'crypto-js'; +// eslint-disable-next-line @typescript-eslint/no-var-requires +const CryptoJS = require('crypto-js'); import { getMasterXpriv,