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

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

export const updateLastSync = (timestamp) => {
  return {
    type: types.SYNC_SET_LAST_SYNC,
    value: timestamp
  }
}

export const endSynchronize = () => {
  return {
    type: types.SYNC_END_SYNC
  }
}

export const startSynchronize = () => {
  return {
    type: types.SYNC_START_SYNC
  }
}