diff options
author | Noah Loomans <noahloomans@gmail.com> | 2018-07-06 17:34:06 +0200 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2018-07-06 17:34:06 +0200 |
commit | 7bfb87a0beda7247f1edc687b34144859813758a (patch) | |
tree | ed2d4b3d81b13d14d631938f01c151113b940635 /src/client/react/components/container/WeekSelector.js | |
parent | 53bb2628748e5967514251606d1fece9f4388b35 (diff) |
client: Remove url helpers
Diffstat (limited to 'src/client/react/components/container/WeekSelector.js')
-rw-r--r-- | src/client/react/components/container/WeekSelector.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/react/components/container/WeekSelector.js b/src/client/react/components/container/WeekSelector.js index c3f03f1..eeba0e7 100644 --- a/src/client/react/components/container/WeekSelector.js +++ b/src/client/react/components/container/WeekSelector.js @@ -21,12 +21,12 @@ import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import { shiftWeek } from '../../store/actions'; -import { weekFromLocation } from '../../lib/url'; +import { selectWeek } from '../../store/selectors'; import WeekSelector from '../presentational/WeekSelector'; -const mapStateToProps = (state, { location }) => ({ - week: weekFromLocation(location), +const mapStateToProps = state => ({ + week: selectWeek(state), }); const mapDispatchToProps = dispatch => ({ |