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

22 lines
456 B
JavaScript
Raw Normal View History

2016-10-05 13:36:47 -04:00
var connect = require('react-redux').connect;
var UserActions = require('../actions/UserActions');
var AccountSettingsModal = require('../components/AccountSettingsModal');
2016-10-05 13:36:47 -04:00
function mapStateToProps(state) {
return {
user: state.user
}
}
function mapDispatchToProps(dispatch) {
return {
onUpdateUser: function(user) {dispatch(UserActions.update(user))}
}
}
module.exports = connect(
mapStateToProps,
mapDispatchToProps
)(AccountSettingsModal)