mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-10-30 07:40:05 -04:00
22 lines
450 B
JavaScript
22 lines
450 B
JavaScript
|
var connect = require('react-redux').connect;
|
||
|
|
||
|
var ReportActions = require('../actions/ReportActions');
|
||
|
var ReportsTab = require('../components/ReportsTab');
|
||
|
|
||
|
function mapStateToProps(state) {
|
||
|
return {
|
||
|
reports: state.reports
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function mapDispatchToProps(dispatch) {
|
||
|
return {
|
||
|
onFetchReport: function(reportname) {dispatch(ReportActions.fetch(reportname))}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = connect(
|
||
|
mapStateToProps,
|
||
|
mapDispatchToProps
|
||
|
)(ReportsTab)
|