client/src/actions/syncActions.js
author salimr <riwad.salim@yahoo.fr>
Tue, 14 Aug 2018 20:34:50 +0200
changeset 143 cfcbf4bc66f1
parent 130 78246db1cbac
permissions -rw-r--r--
Remove react-bootstrap from components except Modal, Collapse and Dropdown

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