diff options
author | Noah Loomans <noahloomans@gmail.com> | 2018-06-28 14:33:04 +0200 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2018-06-28 14:33:04 +0200 |
commit | 8018bbc67b10b7b75589b98ed92c6dda1f6163f4 (patch) | |
tree | 2f6ebd53ee3d8f32fad34de0191d911ddc65757e /src/client/react/components/container | |
parent | e61429154d4c06e0362abd55482400a45b7636ab (diff) |
Extract shiftWeek from WeekSelector
Diffstat (limited to 'src/client/react/components/container')
-rw-r--r-- | src/client/react/components/container/WeekSelector.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/react/components/container/WeekSelector.js b/src/client/react/components/container/WeekSelector.js index 96c5663..c3f03f1 100644 --- a/src/client/react/components/container/WeekSelector.js +++ b/src/client/react/components/container/WeekSelector.js @@ -20,7 +20,7 @@ import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; -import { setWeek } from '../../store/actions'; +import { shiftWeek } from '../../store/actions'; import { weekFromLocation } from '../../lib/url'; import WeekSelector from '../presentational/WeekSelector'; @@ -30,7 +30,7 @@ const mapStateToProps = (state, { location }) => ({ }); const mapDispatchToProps = dispatch => ({ - setWeek: newWeek => dispatch(setWeek(newWeek)), + shiftWeek: newWeek => dispatch(shiftWeek(newWeek)), }); export default withRouter(connect(mapStateToProps, mapDispatchToProps)(WeekSelector)); |