mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-12-26 23:42:29 -05:00
24 lines
503 B
JavaScript
24 lines
503 B
JavaScript
var connect = require('react-redux').connect;
|
|
|
|
var UserActions = require('../actions/UserActions');
|
|
|
|
var AccountSettingsModal = require('../components/AccountSettingsModal');
|
|
|
|
function mapStateToProps(state) {
|
|
return {
|
|
user: state.user,
|
|
currencies: state.securities.currency_list
|
|
}
|
|
}
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return {
|
|
onUpdateUser: function(user) {dispatch(UserActions.update(user))}
|
|
}
|
|
}
|
|
|
|
module.exports = connect(
|
|
mapStateToProps,
|
|
mapDispatchToProps
|
|
)(AccountSettingsModal)
|