client/src/actions/userActions.js
author Alexandre Segura <mex.zktk@gmail.com>
Wed, 28 Jun 2017 12:54:48 +0200
changeset 101 e165aa89ac82
parent 72 7634b424f426
permissions -rw-r--r--
Add group dropdown, update session after group creation.

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