mirror of
				https://github.com/aclindsa/moneygo.git
				synced 2025-11-03 18:13:27 -05:00 
			
		
		
		
	Add Report infrastructure to UI
This commit is contained in:
		
							
								
								
									
										21
									
								
								js/containers/ReportsTabContainer.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								js/containers/ReportsTabContainer.js
									
									
									
									
									
										Normal 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)
 | 
			
		||||
		Reference in New Issue
	
	Block a user