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
|
|
|
|
2016-10-05 13:45:09 -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)
|