fix (ui): is_copied true, disable hover state

This commit is contained in:
Hanzalah Waheed
2025-10-02 13:44:05 +04:00
parent 892312fc08
commit 5b2738aec9

View File

@@ -51,8 +51,9 @@ export default function CopyButton({
'flex items-center justify-center rounded-full transition-colors duration-150 ease-in-out',
padding,
`bg-[${bgColorLight}] dark:bg-[${bgColorDark}]`,
`hover:bg-[${hoverBgColorLight}] dark:hover:bg-${hoverBgColorDark}`,
{
[`hover:bg-[${hoverBgColorLight}] dark:hover:bg-${hoverBgColorDark}`]:
!isCopied,
'bg-green-100 dark:bg-green-900 hover:bg-green-100 dark:hover:bg-green-900':
isCopied,
},