fix: pointer cursor for CopyText

This commit is contained in:
Vyacheslav Matyukhin 2022-04-27 22:27:36 +04:00
parent 185464c0ae
commit 396a39372d
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C

View File

@ -7,7 +7,7 @@ interface Props {
export const CopyText: React.FC<Props> = ({ text, displayText }) => (
<div
className="flex items-center justify-center p-4 space-x-3 border rounded border-blue-400 hover:border-transparent bg-transparent hover:bg-blue-300 text-sm font-medium text-blue-400 hover:text-white"
className="flex items-center justify-center p-4 space-x-3 border rounded border-blue-400 hover:border-transparent bg-transparent hover:bg-blue-300 text-sm font-medium text-blue-400 hover:text-white cursor-pointer"
onClick={(e) => {
e.preventDefault();
navigator.clipboard.writeText(text);