Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 2219 | Rev 2237 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |

import { actionsTypes } from './auth.types'

export const setPermissions = (permissions) => ({
  type: actionsTypes.SET_PERMISSIONS,
  payload: permissions
})

export const startLoading = () => ({
  type: actionsTypes.START_LOADING
})

export const stopLoading = () => ({
  type: actionsTypes.STOP_LOADING
})

export const logout = () => {
  return (dispatch) => {
    dispatch(removeAuth())
  }
}

export const login = () => ({
  type: actionsTypes.LOGIN
})

export const removeAuth = () => ({
  type: actionsTypes.LOGOUT
})