1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2024-12-28 08:12:28 -05:00
moneygo/js/containers/NewUserModalContainer.js

23 lines
464 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-06-21 21:25:38 -04:00
return {
currencies: state.securityTemplates.currencies
}
}
function mapDispatchToProps(dispatch) {
return {
createNewUser: function(user) {dispatch(UserActions.create(user))}
}
}
module.exports = connect(
mapStateToProps,
mapDispatchToProps
)(NewUserModal)