client/src/actions/userActions.js
author ymh <ymh.work@gmail.com>
Sun, 25 Nov 2018 22:07:22 +0100
changeset 177 103b2e2a31fb
parent 72 7634b424f426
permissions -rw-r--r--
Correct requirements entry for django-auditlog

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