Skip to content

Commit

Permalink
Fixed Facility Cover Image upload pop-up (#6616)
Browse files Browse the repository at this point in the history
* remove unnecessary onClick

* removed cursor pointer
  • Loading branch information
konavivekramakrishna authored Nov 21, 2023
1 parent 92208a1 commit 835cab3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Components/Facility/FacilityHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -370,11 +370,8 @@ export const FacilityHome = (props: any) => {
/>
{hasCoverImage ? (
<div
className={`group relative h-48 w-full text-clip rounded-t bg-gray-200 opacity-100 transition-all duration-200 ease-in-out md:h-0 md:opacity-0 ${
hasPermissionToEditCoverImage && "cursor-pointer"
}`}
onClick={() =>
hasPermissionToEditCoverImage && setEditCoverImage(true)
className={
"group relative h-48 w-full text-clip rounded-t bg-gray-200 opacity-100 transition-all duration-200 ease-in-out md:h-0 md:opacity-0"
}
>
<CoverImage />
Expand Down

0 comments on commit 835cab3

Please sign in to comment.