1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2024-10-30 07:40:05 -04:00
moneygo/js/containers/MoneyGoAppContainer.js

25 lines
600 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');
2017-06-21 21:25:38 -04:00
var SecurityTemplateActions = require('../actions/SecurityTemplateActions');
2016-10-05 13:36:47 -04:00
var MoneyGoApp = require('../components/MoneyGoApp');
2016-10-05 13:36:47 -04:00
function mapStateToProps(state) {
return {
user: state.user
}
}
function mapDispatchToProps(dispatch) {
return {
tryResumingSession: function() {dispatch(UserActions.tryResumingSession())},
2017-06-21 21:25:38 -04:00
fetchCurrencies: function() {dispatch(SecurityTemplateActions.fetchCurrencies())},
2016-10-05 13:36:47 -04:00
}
}
module.exports = connect(
mapStateToProps,
mapDispatchToProps
)(MoneyGoApp)