From fae30d433ec3cda40445d80e25756ed5f18cd1d7 Mon Sep 17 00:00:00 2001 From: Abhiuday Date: Fri, 15 Dec 2023 09:19:14 +0530 Subject: [PATCH] fix(actions): removed unnecessary actions for duty staff --- .../Facility/LocationManagement.tsx | 6 ++-- src/Redux/actions.tsx | 29 ------------------- 2 files changed, 3 insertions(+), 32 deletions(-) diff --git a/src/Components/Facility/LocationManagement.tsx b/src/Components/Facility/LocationManagement.tsx index cc5ce028c9a..46b6ee0c3d2 100644 --- a/src/Components/Facility/LocationManagement.tsx +++ b/src/Components/Facility/LocationManagement.tsx @@ -303,11 +303,11 @@ const Location = (props: LocationProps) => { /> )} -
+
setToggle((prev) => !prev)} > @@ -318,7 +318,7 @@ const Location = (props: LocationProps) => { id="manage-bed-button" variant="secondary" border - className="w-full lg:w-auto" + className="w-full md:w-auto" href={`location/${id}/beds`} > diff --git a/src/Redux/actions.tsx b/src/Redux/actions.tsx index 788d0824f14..32af9609263 100644 --- a/src/Redux/actions.tsx +++ b/src/Redux/actions.tsx @@ -74,35 +74,6 @@ export const updateFacilityAssetLocation = ( external_id, }); -export const createFacilityAssetLocationDutyStaff = ( - params: object, - facility_external_id: string, - external_id: string -) => - fireRequest("createFacilityAssetLocationDutyStaff", [], params, { - facility_external_id, - external_id, - }); - -export const removeFacilityAssetLocationDutyStaff = ( - duty_staff: number[], - facility_external_id: string, - external_id: string -) => - fireRequest( - "removeFacilityAssetLocationDutyStaff", - [], - { - data: { - duty_staff: duty_staff, - }, - }, - { - facility_external_id, - external_id, - } - ); - // asset bed export const listAssetBeds = (params: object, altKey?: string) => fireRequest("listAssetBeds", [], params, {}, altKey);