Centralize all redux types into one place, add overrides for the connect, useSelector and useDispatch functions

This commit is contained in:
ErickSkrauch
2020-07-22 13:01:12 +03:00
parent 96e74cf9bb
commit 5a9c54002d
44 changed files with 199 additions and 141 deletions

View File

@@ -2,7 +2,7 @@ import { hot } from 'react-hot-loader/root';
import React, { ComponentType } from 'react';
import { Route, Switch } from 'react-router-dom';
import { Store } from 'app/reducers';
import { Store } from 'app/types';
import AuthFlowRoute from 'app/containers/AuthFlowRoute';
import RootPage from 'app/pages/root/RootPage';
import { ComponentLoader } from 'app/components/ui/loader';

View File

@@ -5,7 +5,7 @@ import { HelmetProvider } from 'react-helmet-async';
import { History } from 'history';
import { IntlProvider } from 'app/components/i18n';
import { Store } from 'app/reducers';
import { Store } from 'app/types';
interface Props {
children: React.ReactNode;

View File

@@ -3,7 +3,7 @@ import { createMemoryHistory } from 'history';
import { DeepPartial } from 'utility-types';
import storeFactory from 'app/storeFactory';
import { RootState } from 'app/reducers';
import { State as RootState } from 'app/types';
import ContextProvider from './ContextProvider';