Skip to content

Commit

Permalink
[Refactoring-CFDS] Hamza/WEBREL-1275/Remove redundant files/folders f…
Browse files Browse the repository at this point in the history
…rom CFD package (#10474)

* chore: remove redundat files from Components and Constants

* chore: remove redundant files from Containers

* chore: remove unused variable from modal manager

* chore: remove unused public folder from cfd package

* chore: unused variable removed from modal-manager

* chore: updated the reset password modals

* chore: remove commented code

* chore: updated the redirect for signup flow
  • Loading branch information
hamza-deriv committed Nov 14, 2023
1 parent f07f674 commit f780db6
Show file tree
Hide file tree
Showing 142 changed files with 16 additions and 5,759 deletions.
28 changes: 2 additions & 26 deletions packages/appstore/src/components/modals/modal-manager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import CFDResetPasswordModal from '@deriv/cfd/src/Containers/cfd-reset-password-
import CFDTopUpDemoModal from '@deriv/cfd/src/Containers/cfd-top-up-demo-modal';
import MT5TradeModal from '@deriv/cfd/src/Containers/mt5-trade-modal';
import CFDPasswordManagerModal from '@deriv/cfd/src/Containers/cfd-password-manager-modal';
import CompareAccountsModal from '@deriv/cfd/src/Containers/compare-accounts-modal';
import { TOpenAccountTransferMeta } from 'Types';
import { DetailsOfEachMT5Loginid } from '@deriv/api-types';
import FailedVerificationModal from './failed-veriification-modal';
Expand All @@ -31,15 +30,7 @@ const ModalManager = () => {
const store = useStores();
const { is_wallet_enabled } = useFeatureFlags();
const { common, client, modules, traders_hub, ui } = store;
const {
is_logged_in,
is_eu,
is_eu_country,
is_populating_mt5_account_list,
has_active_real_account,
real_account_creation_unlock_date,
verification_code,
} = client;
const { is_logged_in, is_eu, is_eu_country, is_populating_mt5_account_list, verification_code } = client;
const { platform } = common;
const {
current_list,
Expand All @@ -51,13 +42,7 @@ const ModalManager = () => {
getRealFinancialAccountsExistingData,
getRealSwapfreeAccountsExistingData,
} = modules.cfd;
const {
enableApp,
disableApp,
setShouldShowCooldownModal,
is_reset_trading_password_modal_visible,
setResetTradingPasswordModalOpen,
} = ui;
const { enableApp, disableApp, is_reset_trading_password_modal_visible, setResetTradingPasswordModalOpen } = ui;
const { is_demo, is_account_transfer_modal_open, toggleAccountTransferModal, is_real_wallets_upgrade_on } =
traders_hub;

Expand Down Expand Up @@ -158,15 +143,6 @@ const ModalManager = () => {
/>
<MT5AccountTypeModal />
<RegulatorsCompareModal />
<CompareAccountsModal
platform={platform}
is_demo_tab={is_demo}
openPasswordModal={openRealPasswordModal}
is_real_enabled={has_active_real_account || !is_demo}
real_account_creation_unlock_date={real_account_creation_unlock_date}
setShouldShowCooldownModal={setShouldShowCooldownModal}
has_unmerged_account={false}
/>
<AccountTransferModal
is_modal_open={is_account_transfer_modal_open}
toggleModal={toggleAccountTransferModal}
Expand Down
1 change: 0 additions & 1 deletion packages/cfd/build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module.exports = function (env) {
entry: {
cfd: path.resolve(__dirname, '../src', 'index.tsx'),
CFDStore: 'Stores/Modules/CFD/cfd-store',
CompareAccountsModal: 'Containers/compare-accounts-modal.tsx',
JurisdictionModal: 'Containers/jurisdiction-modal/jurisdiction-modal.tsx',
CFDPasswordModal: 'Containers/cfd-password-modal.tsx',
CFDDbviOnBoarding: 'Containers/cfd-dbvi-onboarding.tsx',
Expand Down
231 changes: 0 additions & 231 deletions packages/cfd/src/Components/__tests__/cfd-demo-account-display.spec.js

This file was deleted.

102 changes: 0 additions & 102 deletions packages/cfd/src/Components/__tests__/cfd-download-container.spec.js

This file was deleted.

Loading

1 comment on commit f780db6

@vercel
Copy link

@vercel vercel bot commented on f780db6 Nov 14, 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.vercel.app
deriv-app-git-master.binary.sx
deriv-app.binary.sx
binary.sx

Please sign in to comment.