client/src/actions/syncActions.js
author salimr <riwad.salim@yahoo.fr>
Tue, 09 Oct 2018 19:07:47 +0200
changeset 167 1f340f3597a8
parent 130 78246db1cbac
permissions -rw-r--r--
Adapt css for CreateSession and Navbar components

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