import * as types from '../constants/actionTypes';

export function updateArchetype(value) {
  return {
    type: types.UPDATE_ARCHETYPE,
    payload: {
      archetype: value
    }
  };
}

export function updateClan(value) {
  return {
    type: types.UPDATE_CLAN,
    payload: {
      clan: value
    }
  };
}

import * as types from '../constants/actionTypes';

export const updateArchetype = value => ({
  type: types.UPDATE_ARCHETYPE,
  payload: {
    archetype: value
  }
});

export const updateClan = value => ({
  type: types.UPDATE_CLAN,
  payload: {
    clan: value
  }
});

Convert action creators to arrow functions
Convert action creators to arrow functions

