21 lines
422 B
JavaScript
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)
|