hotfix: update router container
This commit is contained in:
parent
3c2b200636
commit
1b341bd158
|
@ -1,18 +1,6 @@
|
||||||
// @flow
|
// @flow
|
||||||
import { compose } from 'redux';
|
import { compose } from 'redux';
|
||||||
import { connect } from 'react-redux';
|
|
||||||
import { withRouter } from 'react-router-dom';
|
import { withRouter } from 'react-router-dom';
|
||||||
import { RouterComponent } from './router';
|
import { RouterComponent } from './router';
|
||||||
import type { AppState } from '../types/app-state';
|
|
||||||
|
|
||||||
const mapStateToProps = (state: AppState) => ({
|
export const Router = compose(withRouter)(RouterComponent);
|
||||||
todos: state.todos,
|
|
||||||
});
|
|
||||||
|
|
||||||
export const Router = compose(
|
|
||||||
withRouter,
|
|
||||||
connect(
|
|
||||||
mapStateToProps,
|
|
||||||
null,
|
|
||||||
),
|
|
||||||
)(RouterComponent);
|
|
||||||
|
|
Loading…
Reference in New Issue