Skip to content

Commit

Permalink
Show Facility Notify button for District/State Admins only
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashesh3 committed Jan 29, 2024
1 parent 4e53a3e commit 008e838
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Components/Facility/FacilityCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export const FacilityCard = (props: { facility: any; userType: any }) => {
</DialogModal>
</div>
<div className="flex flex-wrap gap-2">
{userType !== "Staff" ? (
{["DistrictAdmin", "StateAdmin"].includes(userType) && (
<ButtonV2
id="facility-notify"
ghost
Expand All @@ -236,8 +236,6 @@ export const FacilityCard = (props: { facility: any; userType: any }) => {
<CareIcon className="care-l-megaphone text-lg" />
<span className="hidden md:block">Notify</span>
</ButtonV2>
) : (
<></>
)}
<ButtonV2
href={`/facility/${facility.id}`}
Expand Down

0 comments on commit 008e838

Please sign in to comment.