Skip to content

Commit

Permalink
use import
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTrunk committed Jul 30, 2024
1 parent ad8a249 commit fd0fc81
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
3 changes: 1 addition & 2 deletions src/components/AddressDetails/AddressDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ import { cryptos } from '../../types';

import { blockchains } from '@storage/blockchains';

// eslint-disable-next-line @typescript-eslint/no-var-requires
const CryptoJS = require('crypto-js');
import * as CryptoJS from 'crypto-js';

const AddressDetails = (props: { actionStatus: (status: boolean) => void }) => {
const { identityChain } = useAppSelector((state) => state.ssp);
Expand Down
3 changes: 1 addition & 2 deletions src/components/SSPKeyDetails/SSKeyDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ import { getMasterXpriv, getMasterXpub } from '../../lib/wallet';

import { blockchains } from '@storage/blockchains';

// eslint-disable-next-line @typescript-eslint/no-var-requires
const CryptoJS = require('crypto-js');
import * as CryptoJS from 'crypto-js';

const SSPKeyDetails = (props: { actionStatus: (status: boolean) => void }) => {
// ssp key seed phrase, xpriv, xpub
Expand Down
3 changes: 1 addition & 2 deletions src/components/SyncSuccess/SyncSuccess.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ import { generateMultisigAddress } from '../../lib/wallet';

import { useAppSelector } from '../../hooks';

// eslint-disable-next-line @typescript-eslint/no-var-requires
const CryptoJS = require('crypto-js');
import * as CryptoJS from 'crypto-js';

const SyncSuccess = (props: {
chain: keyof cryptos;
Expand Down
3 changes: 1 addition & 2 deletions src/screens/Create/Create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ import { useTheme } from '../../hooks';
import { useKeyboardVisible } from '../../hooks/keyboardVisible';
import { getUniqueId } from 'react-native-device-info';
import EncryptedStorage from 'react-native-encrypted-storage';
// eslint-disable-next-line @typescript-eslint/no-var-requires
const CryptoJS = require('crypto-js');
import * as CryptoJS from 'crypto-js';

import { blockchains } from '@storage/blockchains';

Expand Down
3 changes: 1 addition & 2 deletions src/screens/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ import {
} from '../../types';
import { blockchains } from '@storage/blockchains';

// eslint-disable-next-line @typescript-eslint/no-var-requires
const CryptoJS = require('crypto-js');
import * as CryptoJS from 'crypto-js';

import {
getMasterXpriv,
Expand Down
3 changes: 1 addition & 2 deletions src/screens/Restore/Restore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ import { blockchains } from '@storage/blockchains';
import { wordlist } from '@scure/bip39/wordlists/english';
import ToastNotif from '../../components/Toast/Toast';

// eslint-disable-next-line @typescript-eslint/no-var-requires
const CryptoJS = require('crypto-js');
import * as CryptoJS from 'crypto-js';

import {
getMasterXpriv,
Expand Down

0 comments on commit fd0fc81

Please sign in to comment.