client/src/actions/userActions.js
author ymh <ymh.work@gmail.com>
Sun, 30 Jul 2017 01:02:09 +0200
changeset 130 78246db1cbac
parent 72 7634b424f426
permissions -rw-r--r--
make synchronization recurent, improve synchronization status display

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

export const updateSettings = (username, firstname, lastname) => {
  return {
    type: types.USER_UPDATE_SETTINGS_ASYNC,
    username,
    firstname,
    lastname
  };
}

export const setAutoSubmit = (value) => {
  return {
    type: types.USER_TOGGLE_AUTO_SUBMIT,
    value
  };
}