shierro/territory-manager

View on GitHub
internals/generators/container/reducer.js.hbs

Summary

Maintainability
Test Coverage
/*
 *
 * {{ properCase name }} reducer
 *
 */

import { fromJS } from 'immutable';
import { DEFAULT_ACTION } from './constants';

export 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;