mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-12-26 23:42:29 -05:00
25 lines
600 B
JavaScript
25 lines
600 B
JavaScript
var connect = require('react-redux').connect;
|
|
|
|
var UserActions = require('../actions/UserActions');
|
|
var SecurityTemplateActions = require('../actions/SecurityTemplateActions');
|
|
|
|
var MoneyGoApp = require('../components/MoneyGoApp');
|
|
|
|
function mapStateToProps(state) {
|
|
return {
|
|
user: state.user
|
|
}
|
|
}
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return {
|
|
tryResumingSession: function() {dispatch(UserActions.tryResumingSession())},
|
|
fetchCurrencies: function() {dispatch(SecurityTemplateActions.fetchCurrencies())},
|
|
}
|
|
}
|
|
|
|
module.exports = connect(
|
|
mapStateToProps,
|
|
mapDispatchToProps
|
|
)(MoneyGoApp)
|