client/src/actions/userActions.js
author ymh <ymh.work@gmail.com>
Fri, 23 Jun 2017 17:58:21 +0200
changeset 83 76a4e4b11762
parent 72 7634b424f426
permissions -rw-r--r--
add server request for note update and delete

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