Add more reports

This commit is contained in:
2017-01-08 09:47:30 -05:00
parent 908e10736a
commit 4e547fe4fd
16 changed files with 357 additions and 97 deletions

View File

@ -0,0 +1,22 @@
var connect = require('react-redux').connect;
var LunchStats = require('../components/LunchStats');
var ReportActions = require('../actions/ReportActions');
function mapStateToProps(state) {
return {
reports: state.reports
}
}
function mapDispatchToProps(dispatch) {
return {
fetchReport: function(reportId) {dispatch(ReportActions.fetch(reportId))},
}
}
module.exports = connect(
mapStateToProps,
mapDispatchToProps
)(LunchStats)