aboutsummaryrefslogtreecommitdiff
path: root/src/client/react/components/container/WeekSelector.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-07-06 17:34:06 +0200
committerNoah Loomans <noahloomans@gmail.com>2018-07-06 17:34:06 +0200
commit7bfb87a0beda7247f1edc687b34144859813758a (patch)
treeed2d4b3d81b13d14d631938f01c151113b940635 /src/client/react/components/container/WeekSelector.js
parent53bb2628748e5967514251606d1fece9f4388b35 (diff)
client: Remove url helpers
Diffstat (limited to 'src/client/react/components/container/WeekSelector.js')
-rw-r--r--src/client/react/components/container/WeekSelector.js6
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 => ({