Skip to content

Commit

Permalink
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
Browse files Browse the repository at this point in the history
…ts-migration-parent
  • Loading branch information
shayan-deriv committed Nov 22, 2022
2 parents 11b9912 + d5a8837 commit 52af15f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
6 changes: 2 additions & 4 deletions packages/appstore/src/modules/trading-hub/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ const TradingHub: React.FC = () => {

const is_loading = is_populating_mt5_account_list || is_populating_dxtrade_account_list;

const is_mf = loginid?.startsWith('MF');

if (is_loading) return <Loading className='cfd-accounts-container__loader' is_fullscreen={false} />;

return (
Expand Down Expand Up @@ -202,7 +200,7 @@ const TradingHub: React.FC = () => {
<CFDAccounts account_type={tab_account_type} />
<Divider horizontal className='trading-hub_body--divider' />
<OptionsAccounts
platformlauncherprops={is_mf || is_eu || is_eu_country ? mf_platform_config : platform_config}
platformlauncherprops={is_eu ? mf_platform_config : platform_config}
accountType={tab_account_type}
/>
</DesktopWrapper>
Expand All @@ -219,7 +217,7 @@ const TradingHub: React.FC = () => {
{platform_type === 'cfd' && <CFDAccounts account_type={tab_account_type} />}
{platform_type === 'options' && (
<OptionsAccounts
platformlauncherprops={is_mf ? mf_platform_config : platform_config}
platformlauncherprops={is_eu ? mf_platform_config : platform_config}
accountType={tab_account_type}
/>
)}
Expand Down
23 changes: 8 additions & 15 deletions packages/core/src/App/Constants/routes-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,23 +206,16 @@ const getModules = ({ is_pre_appstore }) => {
],
},
{
path: routes.appstore,
path: routes.trading_hub,
component: AppStore,
is_authenticated: true,
getTitle: () => localize('Appstore'),
routes: [
{
path: routes.trading_hub,
component: AppStore,
getTitle: () => localize('Trading hub'),
},
{
path: routes.onboarding,
component: AppStore,
is_authenticated: false,
getTitle: () => localize('Onboarding'),
},
],
getTitle: () => localize('Trading hub'),
},
{
path: routes.onboarding,
component: AppStore,
is_authenticated: false,
getTitle: () => localize('Onboarding'),
},
{
path: routes.cashier,
Expand Down

0 comments on commit 52af15f

Please sign in to comment.