aboutsummaryrefslogtreecommitdiff
path: root/src/client/react/components/container/Menu.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/react/components/container/Menu.js')
-rw-r--r--src/client/react/components/container/Menu.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/react/components/container/Menu.js b/src/client/react/components/container/Menu.js
index 7e5abd0..5a18a8d 100644
--- a/src/client/react/components/container/Menu.js
+++ b/src/client/react/components/container/Menu.js
@@ -24,12 +24,12 @@ import { makeSetUser, userFromMatch } from '../../lib/url';
import Menu from '../presentational/Menu';
-const mapStateToProps = (state, { match, location, history }) => ({
+const mapStateToProps = (state, { match }) => ({
user: userFromMatch(match),
- setUser: makeSetUser(location, history),
});
-const mapDispatchToProps = dispatch => ({
+const mapDispatchToProps = (dispatch, { location, history }) => ({
+ setUser: makeSetUser(location, history),
showRoomFinder: () => dispatch({ type: 'ROOM_FINDER/SHOW' }),
});