client/src/reducers/miscReducer.js
author salimr <riwad.salim@yahoo.fr>
Thu, 16 Aug 2018 22:32:36 +0200
changeset 146 4f4bb2b3ef39
parent 129 d48946d164c6
permissions -rw-r--r--
Removing Modal from react-bootstrap and adding react-modal

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 online = (state = false, action) => {
  switch (action.type) {
    case types.STATUS_ONLINE:
      return true;
    case types.STATUS_OFFLINE:
      return false;
    default:
      return state;
  }

}