Skip to content

Commit

Permalink
fix: transfer_to_cashier_error (#7547)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bahar committed Feb 14, 2023
1 parent d5a1f32 commit 50f384b
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions packages/appstore/src/components/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import classNames from 'classnames';
import * as React from 'react';
import { setWebsocket, routes } from '@deriv/shared';
import { StoreProvider, observer } from '@deriv/stores';
import CashierStoreProvider from '@deriv/cashier/src/cashier-providers';
import Routes from 'Components/routes/routes';
import { useStores, initContext } from 'Stores';
import { TRootStore } from 'Types';
Expand All @@ -20,19 +21,21 @@ const App = ({ passthrough: { WS, root_store } }: TAppProps) => {
const { ui }: TRootStore = useStores();

return (
<StoreProvider store={root_store as any}>
<main
className={classNames('dashboard', {
'theme--light': !ui.is_dark_mode_on,
'theme--dark': ui.is_dark_mode_on,
'dashboard-onboarding': window.location.pathname === routes.onboarding,
})}
>
<div className='dw-dashboard'>
<Routes />
</div>
</main>
</StoreProvider>
<CashierStoreProvider store={root_store as any}>
<StoreProvider store={root_store as any}>
<main
className={classNames('dashboard', {
'theme--light': !ui.is_dark_mode_on,
'theme--dark': ui.is_dark_mode_on,
'dashboard-onboarding': window.location.pathname === routes.onboarding,
})}
>
<div className='dw-dashboard'>
<Routes />
</div>
</main>
</StoreProvider>
</CashierStoreProvider>
);
};

Expand Down

1 comment on commit 50f384b

@vercel
Copy link

@vercel vercel bot commented on 50f384b Feb 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-git-master.binary.sx
binary.sx
deriv-app.binary.sx
deriv-app.vercel.app

Please sign in to comment.