Skip to content

Commit

Permalink
Fix: volunteer access to link facility
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaJ2305 committed Dec 14, 2024
1 parent ead041b commit 74d96de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Users/LinkedFacilities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,10 @@ export default function LinkedFacilities({
</div>
)}
</div>
<DropdownMenuTrigger id="linked-facility-settings">
<DropdownMenuTrigger
disabled={userData.user_type == "Volunteer"}
id="linked-facility-settings"
>
<div className="flex items-center justify-center rounded-r bg-secondary-300 px-2 min-h-16">
<CareIcon icon="l-setting" className="text-xl" />
</div>
Expand Down Expand Up @@ -274,6 +277,7 @@ export default function LinkedFacilities({
onClick={() =>
handleOnClick("clear_home_facility", homeFacility)
}
disabled={userData.user_type == "Volunteer"}
title={t("clear_home_facility")}
aria-label={t("clear_home_facility")}
>
Expand Down

0 comments on commit 74d96de

Please sign in to comment.