diff --git a/src/pages/Facility/settings/locations/components/LocationCard.tsx b/src/pages/Facility/settings/locations/components/LocationCard.tsx index ef26c829b31..a5422645b05 100644 --- a/src/pages/Facility/settings/locations/components/LocationCard.tsx +++ b/src/pages/Facility/settings/locations/components/LocationCard.tsx @@ -165,51 +165,59 @@ export function LocationCard({
{!location.has_children && !location.current_encounter && ( - - - - - - - - {t("remove")} {location.name} - - - {t("are_you_sure_want_to_delete", { - name: location.name, - })} - - - - {t("cancel")} - - removeLocation({ - pathParams: { - facility_id: facilityId, - id: location.id, - }, - }) - } - className={cn(buttonVariants({ variant: "destructive" }))} +
+ + + + + + + + {t("remove")} {location.name} + + + {t("are_you_sure_want_to_delete", { + name: location.name, + })} + + + + {t("cancel")} + + removeLocation({ + pathParams: { + facility_id: facilityId, + id: location.id, + }, + }) + } + className={cn( + buttonVariants({ variant: "destructive" }), + )} + > + {t("remove")} + + + + +
)} - +
+ +