mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 09:56:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			390 B
		
	
	
	
		
			Handlebars
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			390 B
		
	
	
	
		
			Handlebars
		
	
	
		
			Executable File
		
	
	
	
	
| /*
 | |
|  *
 | |
|  * {{ properCase name }} reducer
 | |
|  *
 | |
|  */
 | |
| 
 | |
| import { fromJS } from 'immutable';
 | |
| import {
 | |
|   DEFAULT_ACTION,
 | |
| } from './constants';
 | |
| 
 | |
| const initialState = fromJS({});
 | |
| 
 | |
| function {{ camelCase name }}Reducer(state = initialState, action) {
 | |
|   switch (action.type) {
 | |
|     case DEFAULT_ACTION:
 | |
|       return state;
 | |
|     default:
 | |
|       return state;
 | |
|   }
 | |
| }
 | |
| 
 | |
| export default {{ camelCase name }}Reducer;
 | 
