Add more reports
This commit is contained in:
@ -1,18 +0,0 @@
|
||||
var connect = require('react-redux').connect;
|
||||
|
||||
var AttendeeFrequencyChart = require('../components/AttendeeFrequencyChart');
|
||||
|
||||
function mapStateToProps(state) {
|
||||
return {
|
||||
popularAttendees: state.popularAttendees
|
||||
}
|
||||
}
|
||||
|
||||
function mapDispatchToProps(dispatch) {
|
||||
return {}
|
||||
}
|
||||
|
||||
module.exports = connect(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps
|
||||
)(AttendeeFrequencyChart)
|
22
js/containers/LunchStatsContainer.js
Normal file
22
js/containers/LunchStatsContainer.js
Normal 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)
|
@ -1,18 +0,0 @@
|
||||
var connect = require('react-redux').connect;
|
||||
|
||||
var PopularSuggestionsChart = require('../components/PopularSuggestionsChart');
|
||||
|
||||
function mapStateToProps(state) {
|
||||
return {
|
||||
popularSuggestions: state.popularSuggestions
|
||||
}
|
||||
}
|
||||
|
||||
function mapDispatchToProps(dispatch) {
|
||||
return {}
|
||||
}
|
||||
|
||||
module.exports = connect(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps
|
||||
)(PopularSuggestionsChart)
|
Reference in New Issue
Block a user