refactored

This commit is contained in:
Sean Macfarlane
2020-03-11 17:55:42 -04:00
parent 63b392d73d
commit b619cfe8b0
31 changed files with 836 additions and 261 deletions

View File

@@ -1,16 +1,11 @@
import React from 'react';
import { compose } from 'redux';
import { Helmet } from 'react-helmet';
import { Switch } from 'react-router-dom';
import 'styles/antd.less';
import 'styles/index.scss';
import injectReducer from 'utils/injectReducer';
import injectSaga from 'utils/injectSaga';
import reducer from './reducer';
import saga from './saga';
import Dashboard from 'containers/Dashboard';
import RouteWithLayout from './components/RouteWithLayout';
@@ -21,12 +16,9 @@ const App = () => (
</Helmet>
<Switch>
<RouteWithLayout exact path="/" component={Home} />
<RouteWithLayout exact path="/" component={Dashboard} />
</Switch>
</>
);
const withReducer = injectReducer({ key: 'global', reducer });
const withSaga = injectSaga({ key: 'global', saga });
export default compose(withReducer, withSaga)(App);
export default App;