client/src/actions/networkActions.js
author ymh <ymh.work@gmail.com>
Tue, 18 Dec 2018 02:27:22 +0100
changeset 199 c78d579f4b55
parent 129 d48946d164c6
permissions -rw-r--r--
Correct the registration screen. First version of a password reset screen.

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