client/src/actions/userActions.js
author ymh <ymh.work@gmail.com>
Wed, 19 Jul 2017 16:20:29 +0200
changeset 120 892980a3af09
parent 72 7634b424f426
permissions -rw-r--r--
for notes api, the end point list all properties.

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