fix: update copy button to use the proper cursor style when hovering
This commit is contained in:
+2
-2
@@ -85,14 +85,14 @@ export default function AboutPage() {
|
|||||||
<CopyButton
|
<CopyButton
|
||||||
value={email}
|
value={email}
|
||||||
label="Copy email"
|
label="Copy email"
|
||||||
className={`hover:text-neutral-200 rounded-md hover:bg-[${colors.accent}] p-1 transition-colors duration-200`}
|
className={`hover:text-neutral-200 rounded-md hover:bg-[${colors.accent}] p-1 transition-colors duration-200 cursor-pointer`}
|
||||||
>
|
>
|
||||||
<IconMailFilled size={32} />
|
<IconMailFilled size={32} />
|
||||||
</CopyButton>
|
</CopyButton>
|
||||||
<CopyButton
|
<CopyButton
|
||||||
value={phone}
|
value={phone}
|
||||||
label="Copy phone"
|
label="Copy phone"
|
||||||
className={`hover:text-neutral-200 rounded-md hover:bg-[${colors.accent}] p-1 transition-colors duration-200`}
|
className={`hover:text-neutral-200 rounded-md hover:bg-[${colors.accent}] p-1 transition-colors duration-200 cursor-pointer`}
|
||||||
>
|
>
|
||||||
<IconPhoneFilled size={32} />
|
<IconPhoneFilled size={32} />
|
||||||
</CopyButton>
|
</CopyButton>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export default function CopyButton({
|
|||||||
value,
|
value,
|
||||||
label,
|
label,
|
||||||
copiedLabel = "Copied!",
|
copiedLabel = "Copied!",
|
||||||
className = "rounded-md p-1 text-neutral-600 transition-colors duration-200 hover:text-neutral-200",
|
className = "rounded-md p-1 text-neutral-600 transition-colors duration-200 hover:text-neutral-200 cursor-pointer",
|
||||||
children,
|
children,
|
||||||
}: CopyButtonProps) {
|
}: CopyButtonProps) {
|
||||||
const [copied, setCopied] = useState(false);
|
const [copied, setCopied] = useState(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user