Skip to content

Commit

Permalink
fix: transfer_to_cashier_error (deriv-com#7547)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bahar authored 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

0 comments on commit 50f384b

Please sign in to comment.