Skip to content

Commit

Permalink
fix(actions): removed unnecessary actions for duty staff
Browse files Browse the repository at this point in the history
  • Loading branch information
aeswibon committed Dec 27, 2023
1 parent ccfc578 commit fae30d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 32 deletions.
6 changes: 3 additions & 3 deletions src/Components/Facility/LocationManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,11 @@ const Location = (props: LocationProps) => {
/>
)}
</div>
<div className="flex gap-3 pt-3">
<div className="mt-3 flex flex-col gap-4 md:flex-row md:items-center md:justify-between">
<ButtonV2
variant="secondary"
border
className="w-full lg:w-auto"
className="w-full md:w-auto"
onClick={() => setToggle((prev) => !prev)}
>
<CareIcon className="care-l-user text-lg" />
Expand All @@ -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`}
>
<CareIcon className="care-l-bed text-lg" />
Expand Down
29 changes: 0 additions & 29 deletions src/Redux/actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fae30d4

Please sign in to comment.