Skip to content

Commit

Permalink
revert cryptojs
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTrunk committed Jul 30, 2024
1 parent beb5ac9 commit ad8a249
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/components/AddressDetails/AddressDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion src/components/SSPKeyDetails/SSKeyDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/components/SyncSuccess/SyncSuccess.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/screens/Create/Create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
3 changes: 2 additions & 1 deletion src/screens/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion src/screens/Restore/Restore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ad8a249

Please sign in to comment.