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

23 lines
438 B
JavaScript

var connect = require('react-redux').connect;
var UserActions = require('../actions/UserActions');
var NewUserModal = require('../components/NewUserModal');
function mapStateToProps(state) {
return {
groups: state.groups
}
}
function mapDispatchToProps(dispatch) {
return {
createNewUser: function(user) {dispatch(UserActions.create(user))}
}
}
module.exports = connect(
mapStateToProps,
mapDispatchToProps
)(NewUserModal)