lunch/js/containers/LunchStatsContainer.js

23 lines
446 B
JavaScript
Raw Normal View History

2017-01-08 09:47:30 -05:00
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)