You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819
  1. import {
  2. RESET_USER_STATE,
  3. SET_USER,
  4. SET_USER_ERROR,
  5. } from './userActionConstants';
  6. export const setUser = (payload) => ({
  7. type: SET_USER,
  8. payload,
  9. });
  10. export const setUserError = (payload) => ({
  11. type: SET_USER_ERROR,
  12. payload,
  13. });
  14. export const resetUserState = () => ({
  15. type: RESET_USER_STATE,
  16. });