Colocate reducers, actions and selectors
This commit is contained in:
parent
1e7d4c3fe4
commit
889e3b88b7
53 changed files with 1031 additions and 914 deletions
|
@ -10,8 +10,8 @@ const Route = ({ route, name, children }) => {
|
|||
|
||||
const getRoute = state => state.router.route;
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
const mapState = createStructuredSelector({
|
||||
route: getRoute
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps)(Route);
|
||||
export default connect(mapState)(Route);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue