client/src/reducers/miscReducer.js
author Alexandre Segura <mex.zktk@gmail.com>
Wed, 28 Jun 2017 13:29:07 +0200
changeset 102 b0e36664f1f2
parent 72 7634b424f426
child 107 e6f85e26b08c
permissions -rw-r--r--
Add TextPositionSelector.

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