client/src/actions/syncActions.js
author salimr <riwad.salim@yahoo.fr>
Fri, 31 Aug 2018 15:14:18 +0200
changeset 151 57d63a248f0d
parent 130 78246db1cbac
permissions -rw-r--r--
Update to Bootstrap 4

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