Skip to content

Commit

Permalink
[Wallets] adrienne / moved types out to root (#10883)
Browse files Browse the repository at this point in the history
* chore: moved types out to root

* chore: fix build
  • Loading branch information
adrienne-deriv committed Oct 24, 2023
1 parent d15ee12 commit 43ec46e
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/wallets/src/features/cfd/constants.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { THooks } from '../../../types';
import { THooks } from '../../../../../types';

export type TClickableDescription = {
onClick?: React.MouseEventHandler<HTMLSpanElement>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
File renamed without changes.

1 comment on commit 43ec46e

@vercel
Copy link

@vercel vercel bot commented on 43ec46e Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-app – ./

deriv-app.binary.sx
binary.sx
deriv-app.vercel.app
deriv-app-git-master.binary.sx

Please sign in to comment.