lunch/js/containers/NewGroupModalContainer.js
2017-01-10 08:46:34 -05:00

21 lines
422 B
JavaScript

var connect = require('react-redux').connect;
var GroupActions = require('../actions/GroupActions');
var NewGroupModal = require('../components/NewGroupModal');
function mapStateToProps(state) {
return {}
}
function mapDispatchToProps(dispatch) {
return {
createNewGroup: function(group) {dispatch(GroupActions.create(group))}
}
}
module.exports = connect(
mapStateToProps,
mapDispatchToProps
)(NewGroupModal)