Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
johnchourajr committed Oct 9, 2024
1 parent a7afbcb commit 4aaeffc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion example/src/components/PanelCode/PanelCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ export function PanelCode({ className, panelContent }: PanelCodeProps) {
onClick={() => copyText(activeContent)}
onMouseEnter={() => !isCopied && setIsHovering(true)}
onMouseLeave={() => !isCopied && setIsHovering(false)}
className={clsx("px-4 py-3 h-full")}
className={clsx(
"px-4 py-3 h-full",
isHovering ? "opacity-50" : "opacity-100",
)}
>
{isCopied ? "copied" : "copy"}
</button>
Expand Down

0 comments on commit 4aaeffc

Please sign in to comment.