diff --git a/packages/wallets/src/features/cfd/constants.tsx b/packages/wallets/src/features/cfd/constants.tsx index d01dfc330bd9..72e9f7fb3824 100644 --- a/packages/wallets/src/features/cfd/constants.tsx +++ b/packages/wallets/src/features/cfd/constants.tsx @@ -1,5 +1,5 @@ import React, { ReactNode } from 'react'; -import { TMarketTypes, TPlatforms } from './types'; +import { TMarketTypes, TPlatforms } from '../../types'; import FinancialMT5Icon from '../../public/images/mt5-financial.svg'; import SwapFreeMT5Icon from '../../public/images/mt5-swap-free.svg'; import DerivedMT5Icon from '../../public/images/mt5-derived.svg'; diff --git a/packages/wallets/src/features/cfd/flows/MT5/AddedMT5AccountsList/AddedMT5AccountsList.tsx b/packages/wallets/src/features/cfd/flows/MT5/AddedMT5AccountsList/AddedMT5AccountsList.tsx index b4d3f9658f18..81b30685fbe8 100644 --- a/packages/wallets/src/features/cfd/flows/MT5/AddedMT5AccountsList/AddedMT5AccountsList.tsx +++ b/packages/wallets/src/features/cfd/flows/MT5/AddedMT5AccountsList/AddedMT5AccountsList.tsx @@ -3,7 +3,7 @@ import { useHistory } from 'react-router-dom'; import { useAuthorize } from '@deriv/api'; import { WalletButton } from '../../../../../components/Base'; import { TradingAccountCard } from '../../../../../components/TradingAccountCard'; -import { THooks } from '../../../types'; +import { THooks } from '../../../../../types'; import './AddedMT5AccountsList.scss'; import { MarketTypeToIconMapper, MarketTypeToTitleMapper } from '../../../constants'; diff --git a/packages/wallets/src/features/cfd/flows/MT5/AvailableMT5AccountsList/AvailableMT5AccountsList.tsx b/packages/wallets/src/features/cfd/flows/MT5/AvailableMT5AccountsList/AvailableMT5AccountsList.tsx index 7b757d723e4f..013f4f36c61d 100644 --- a/packages/wallets/src/features/cfd/flows/MT5/AvailableMT5AccountsList/AvailableMT5AccountsList.tsx +++ b/packages/wallets/src/features/cfd/flows/MT5/AvailableMT5AccountsList/AvailableMT5AccountsList.tsx @@ -3,7 +3,7 @@ import { useActiveWalletAccount } from '@deriv/api'; import { TradingAccountCard, WalletButton } from '../../../../../components'; import { useModal } from '../../../../../components/ModalProvider'; import { JurisdictionModal, MT5PasswordModal } from '../../../modals'; -import { THooks } from '../../../types'; +import { THooks } from '../../../../../types'; import './AvailableMT5AccountsList.scss'; import { MarketTypeToDescriptionMapper, MarketTypeToIconMapper, MarketTypeToTitleMapper } from '../../../constants'; diff --git a/packages/wallets/src/features/cfd/modals/MT5PasswordModal/MT5PasswordModal.tsx b/packages/wallets/src/features/cfd/modals/MT5PasswordModal/MT5PasswordModal.tsx index 1e326986148a..a6fd3073e9e0 100644 --- a/packages/wallets/src/features/cfd/modals/MT5PasswordModal/MT5PasswordModal.tsx +++ b/packages/wallets/src/features/cfd/modals/MT5PasswordModal/MT5PasswordModal.tsx @@ -11,7 +11,7 @@ import { ModalWrapper, WalletButton } from '../../../../components/Base'; import { useModal } from '../../../../components/ModalProvider'; import MT5PasswordIcon from '../../../../public/images/ic-mt5-password.svg'; import { CreatePassword, EnterPassword, Success } from '../../screens'; -import { TMarketTypes, TPlatforms } from '../../types'; +import { TMarketTypes, TPlatforms } from '../../../../types'; import { MarketTypeToTitleMapper, PlatformToTitleMapper } from '../../constants'; type TProps = { diff --git a/packages/wallets/src/features/cfd/screens/CreatePassword/CreatePassword.tsx b/packages/wallets/src/features/cfd/screens/CreatePassword/CreatePassword.tsx index dccbed9b8b4a..e97f8e140dac 100644 --- a/packages/wallets/src/features/cfd/screens/CreatePassword/CreatePassword.tsx +++ b/packages/wallets/src/features/cfd/screens/CreatePassword/CreatePassword.tsx @@ -1,7 +1,7 @@ import React from 'react'; import PasswordShowIcon from '../../../../public/images/ic-password-show.svg'; import './CreatePassword.scss'; -import { TPlatforms } from '../../types'; +import { TPlatforms } from '../../../../types'; import { PlatformToTitleMapper } from '../../constants'; type TProps = { diff --git a/packages/wallets/src/features/cfd/screens/EnterPassword/EnterPassword.tsx b/packages/wallets/src/features/cfd/screens/EnterPassword/EnterPassword.tsx index f908a441c594..6c1c011de60b 100644 --- a/packages/wallets/src/features/cfd/screens/EnterPassword/EnterPassword.tsx +++ b/packages/wallets/src/features/cfd/screens/EnterPassword/EnterPassword.tsx @@ -1,7 +1,7 @@ import React from 'react'; import PasswordShowIcon from '../../../../public/images/ic-password-show.svg'; import './EnterPassword.scss'; -import { TMarketTypes, TPlatforms } from '../../types'; +import { TMarketTypes, TPlatforms } from '../../../../types'; import { PlatformToTitleMapper } from '../../constants'; type TProps = { diff --git a/packages/wallets/src/features/cfd/screens/Jurisdiction/JurisdictionScreen.tsx b/packages/wallets/src/features/cfd/screens/Jurisdiction/JurisdictionScreen.tsx index 6ca13809b7f7..e29a2c8ad28a 100644 --- a/packages/wallets/src/features/cfd/screens/Jurisdiction/JurisdictionScreen.tsx +++ b/packages/wallets/src/features/cfd/screens/Jurisdiction/JurisdictionScreen.tsx @@ -4,7 +4,7 @@ import { WalletText } from '../../../../components/Base/WalletText'; import { useModal } from '../../../../components/ModalProvider'; import { JurisdictionCard } from './JurisdictionCard'; import './JurisdictionScreen.scss'; -import { THooks } from '../../types'; +import { THooks } from '../../../../types'; type TJurisdictionScreenProps = { selectedJurisdiction: THooks.AvailableMT5Accounts['shortcode']; diff --git a/packages/wallets/src/features/cfd/screens/Jurisdiction/jurisdiction-contents/props.types.ts b/packages/wallets/src/features/cfd/screens/Jurisdiction/jurisdiction-contents/props.types.ts index a8291b18c546..8e679d19d862 100644 --- a/packages/wallets/src/features/cfd/screens/Jurisdiction/jurisdiction-contents/props.types.ts +++ b/packages/wallets/src/features/cfd/screens/Jurisdiction/jurisdiction-contents/props.types.ts @@ -1,4 +1,4 @@ -import { THooks } from '../../../types'; +import { THooks } from '../../../../../types'; export type TClickableDescription = { onClick?: React.MouseEventHandler; diff --git a/packages/wallets/src/features/cfd/screens/Success/Success.tsx b/packages/wallets/src/features/cfd/screens/Success/Success.tsx index a61ab09379d3..5d9958a32633 100644 --- a/packages/wallets/src/features/cfd/screens/Success/Success.tsx +++ b/packages/wallets/src/features/cfd/screens/Success/Success.tsx @@ -4,7 +4,7 @@ import { WalletText } from '../../../../components'; import { WalletGradientBackground } from '../../../../components/WalletGradientBackground'; import { WalletMarketCurrencyIcon } from '../../../../components/WalletMarketCurrencyIcon'; import './Success.scss'; -import { TDisplayBalance, TMarketTypes, TPlatforms } from '../../types'; +import { TDisplayBalance, TMarketTypes, TPlatforms } from '../../../../types'; import { MarketTypeToTitleMapper, PlatformToTitleMapper } from '../../constants'; type TSuccessProps = { diff --git a/packages/wallets/src/features/cfd/types.ts b/packages/wallets/src/types.ts similarity index 100% rename from packages/wallets/src/features/cfd/types.ts rename to packages/wallets/src/types.ts