Skip to content

Commit

Permalink
added location for linked facility
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaJ2305 committed Dec 11, 2024
1 parent 7ef2299 commit 476f36e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/Users/LinkedFacilities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,11 @@ export default function LinkedFacilities({
<div id={`facility_${facility.id}`} key={`facility_${facility.id}`}>
<DropdownMenu>
<div className="flex flex-row items-center rounded-sm border bg-secondary-100">
<div className="rounded p-1 text-sm">{facility.name}</div>
<div className="rounded p-1 text-sm">
{facility.name}
{facility.district_object?.name &&
`, ${facility.district_object.name}`}
</div>
<DropdownMenuTrigger id="linked-facility-settings">
<div className="rounded-r bg-secondary-300 px-2 py-1">
<CareIcon icon="l-setting" className="text-sm" />
Expand Down Expand Up @@ -242,8 +246,10 @@ export default function LinkedFacilities({
key={`facility_${homeFacility.id}`}
>
<div className="flex flex-row items-center rounded-sm border bg-secondary-100">
<div id="home-facility" className="rounded p-1 text-sm">
<div className="rounded p-1 text-sm">
{homeFacility.name}
{homeFacility.district_object &&
`, ${homeFacility.district_object.name}`}
</div>
{(authorizeForHomeFacility || isCurrentUser) && (
<div className="border-l-3 rounded-r bg-secondary-300 px-2 py-1">
Expand Down

0 comments on commit 476f36e

Please sign in to comment.