23 lines
432 B
JavaScript
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)
|