client/src/reducers/miscReducer.js
author ymh <ymh.work@gmail.com>
Fri, 23 Jun 2017 18:50:57 +0200
changeset 86 fa8ef84a1780
parent 72 7634b424f426
child 107 e6f85e26b08c
permissions -rw-r--r--
Add margin comments in server save

import * as types from '../constants/actionTypes';

export const autoSubmit = (state = false, action) => {
  switch (action.type) {
    case types.USER_TOGGLE_AUTO_SUBMIT:
      return action.value;
    default:
      return state;
  }
}