Skip to content

Commit

Permalink
chore: change RootStore type
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-deriv committed Jan 17, 2023
1 parent e4b6d83 commit 2598b47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/reports/src/Containers/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { withRouter } from 'react-router';
import BinaryRoutes from 'Components/Routes';
import { connect } from 'Stores/connect';
import ErrorComponent from 'Components/Errors';
import RootStore from 'Stores/index';
import type { TStores } from '@deriv/stores';
import { TErrorComponent } from 'Components/Errors/error-component';

type TPassthrough = {
root_store: RootStore;
root_store: TStores;
WS: Record<string, any>;
};

Expand All @@ -31,7 +31,7 @@ const Routes = ({ error, has_error, is_logged_in, is_logging_in, is_virtual, pas
// need to wrap withRouter around connect
// to prevent updates on <BinaryRoutes /> from being blocked
export default withRouter(
connect(({ client, common }: RootStore) => ({
connect(({ client, common }: TStores) => ({
is_logged_in: client.is_logged_in,
is_logging_in: client.is_logging_in,
error: common.error,
Expand Down

0 comments on commit 2598b47

Please sign in to comment.