Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Ayyagaries/39aa716ed2f0c2062d140c0103b4aa8c to your computer and use it in GitHub Desktop.
Save Ayyagaries/39aa716ed2f0c2062d140c0103b4aa8c to your computer and use it in GitHub Desktop.
Action file
export const RESPONSE_ADMIN_ATTACHED_FACILITIES = 'RESPONSE_ADMIN_ATTACHED_FACILITIES';
export const ERROR = 'ERROR';
export const REQUEST_ATTACHED_FACILITIES = 'REQUEST_ATTACHED_FACILITIES';
export const responseAdminAttachedFacilities = data => ({
type: RESPONSE_ADMIN_ATTACHED_FACILITIES,
attachedFacilities: data.attachedFacilities,
});
export const errorFetchFacilties = () => ({
type: ERROR,
});
export const requestAttachedFacilities = () => ({
type: REQUEST_ATTACHED_FACILITIES,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment