deleteUser.js 447 B

12345678910111213141516171819
  1. import * as actionTypes from '../../../constants/admin';
  2. export const deleteUsersRequest = payload => {
  3. console.log(payload)
  4. return{
  5. type: actionTypes.DELETE_USERS_REQUEST,
  6. payload
  7. }
  8. }
  9. export const deleteUsersSuccess = payload => ({
  10. type: actionTypes.DELETE_USERS_REQUEST_SUCCESS,
  11. payload
  12. });
  13. export const deleteUsersFailure = error => ({
  14. type: actionTypes.DELETE_USERS_REQUEST_FAILURE,
  15. error
  16. });