lunch/js/containers/NewUserModalContainer.js

23 lines
438 B
JavaScript
Raw Normal View History

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