lunch/js/containers/LunchAppContainer.js
2016-12-22 21:23:20 -05:00

23 lines
432 B
JavaScript

var connect = require('react-redux').connect;
var UserActions = require('../actions/UserActions');
var LunchApp = require('../components/LunchApp');
function mapStateToProps(state) {
return {
user: state.user
}
}
function mapDispatchToProps(dispatch) {
return {
tryResumingSession: function() {dispatch(UserActions.tryResumingSession())},
}
}
module.exports = connect(
mapStateToProps,
mapDispatchToProps
)(LunchApp)