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