1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-06-13 05:29:24 -04:00

Add Report infrastructure to UI

This commit is contained in:
2017-02-11 20:39:38 -05:00
parent 5d583a2315
commit d3d79fb613
8 changed files with 219 additions and 1 deletions

View File

@ -0,0 +1,21 @@
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)