lunch/js/containers/NewGroupModalContainer.js

21 lines
422 B
JavaScript
Raw Normal View History

2017-01-10 08:08:45 -05:00
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)