mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-06-13 05:29:24 -04:00
Convert NewUserPanel to a Modal, and to use redux
This commit is contained in:
20
js/containers/NewUserModalContainer.js
Normal file
20
js/containers/NewUserModalContainer.js
Normal file
@ -0,0 +1,20 @@
|
||||
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)
|
Reference in New Issue
Block a user