mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-10-30 15:50:04 -04:00
21 lines
413 B
JavaScript
21 lines
413 B
JavaScript
|
var connect = require('react-redux').connect;
|
||
|
|
||
|
var UserActions = require('../actions/UserActions');
|
||
|
|
||
|
var NewUserModal = require('../components/NewUserModal');
|
||
|
|
||
|
function mapStateToProps(state) {
|
||
|
return {}
|
||
|
}
|
||
|
|
||
|
function mapDispatchToProps(dispatch) {
|
||
|
return {
|
||
|
createNewUser: function(user) {dispatch(UserActions.create(user))}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = connect(
|
||
|
mapStateToProps,
|
||
|
mapDispatchToProps
|
||
|
)(NewUserModal)
|