client/src/actions/userActions.js
author ymh <ymh.work@gmail.com>
Mon, 26 Nov 2018 13:57:30 +0100
changeset 178 89d8432aad9f
parent 72 7634b424f426
permissions -rw-r--r--
Add a IRINOTES_CONFIG_BASE to allow giving a config file location

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