client/src/actions/networkActions.js
author ymh <ymh.work@gmail.com>
Fri, 16 Nov 2018 11:19:13 +0100
changeset 173 0e6703cd0968
parent 129 d48946d164c6
permissions -rw-r--r--
Correct the Note editor. Split the source file in sub components. Correct a timing problem on the editor checkbox.

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

export const dataFetchSuccess = (res) => {
  return {
    type: types.DATA_FETCH_SUCCESS,
    res
  };
}

export const setOnlineStatus = (status) => {
  return {
    type: status?types.STATUS_ONLINE:types.STATUS_OFFLINE
  }
}


export const forceSync = () => {
  return {
    type: types.SYNC_DO_SYNC
  }
}