| 
									
										
										
										
											2016-01-27 11:34:44 -08:00
										 |  |  | import { combineReducers } from 'redux'; | 
					
						
							| 
									
										
										
										
											2016-02-05 20:48:59 -08:00
										 |  |  | import { reducer as formReducer } from 'redux-form'; | 
					
						
							| 
									
										
										
										
											2016-01-27 11:34:44 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | import { reducer as app } from './redux'; | 
					
						
							| 
									
										
										
										
											2016-07-06 11:47:16 -07:00
										 |  |  | import { reducer as toasts } from './toasts/redux'; | 
					
						
							| 
									
										
										
										
											2016-03-21 15:39:45 -07:00
										 |  |  | import entitiesReducer from './redux/entities-reducer'; | 
					
						
							| 
									
										
										
										
											2016-06-07 20:41:42 -07:00
										 |  |  | import { | 
					
						
							|  |  |  |   reducer as challengesApp, | 
					
						
							|  |  |  |   projectNormalizer | 
					
						
							|  |  |  | } from './routes/challenges/redux'; | 
					
						
							| 
									
										
										
										
											2016-01-27 11:34:44 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | export default function createReducer(sideReducers = {}) { | 
					
						
							|  |  |  |   return combineReducers({ | 
					
						
							|  |  |  |     ...sideReducers, | 
					
						
							| 
									
										
										
										
											2016-03-21 15:39:45 -07:00
										 |  |  |     entities: entitiesReducer, | 
					
						
							| 
									
										
										
										
											2016-01-27 11:34:44 -08:00
										 |  |  |     app, | 
					
						
							| 
									
										
										
										
											2016-07-06 11:47:16 -07:00
										 |  |  |     toasts, | 
					
						
							| 
									
										
										
										
											2016-03-09 14:43:48 -08:00
										 |  |  |     challengesApp, | 
					
						
							| 
									
										
										
										
											2016-06-13 12:26:30 -07:00
										 |  |  |     form: formReducer.normalize({ ...projectNormalizer }) | 
					
						
							| 
									
										
										
										
											2016-01-27 11:34:44 -08:00
										 |  |  |   }); | 
					
						
							|  |  |  | } |