client/src/actions/userActions.js
author ymh <ymh.work@gmail.com>
Tue, 28 Aug 2018 18:52:12 +0200
changeset 149 298d0373812e
parent 72 7634b424f426
permissions -rw-r--r--
Correct problem with "findDOMNode" is null

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