lunch/js/containers/LunchAppContainer.js

23 lines
432 B
JavaScript
Raw Normal View History

2016-12-22 21:22:47 -05:00
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)