client/src/reducers/miscReducer.js
author ymh <ymh.work@gmail.com>
Thu, 20 Jul 2017 23:37:58 +0200
changeset 125 c653f49fabfb
parent 107 e6f85e26b08c
child 129 d48946d164c6
permissions -rw-r--r--
remove unecessary dependencies to Redux

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

export const outbox = (state = [], action) => {
  switch (action.type) {
    case types.OFFLINE_PURGE_OUTBOX:
      // FIXME Does not work
      // Need to find a way to purge outbox
      // @see https://github.com/jevakallio/redux-offline/issues/68
      return state;
    default:
      return state;
  }
}