fix: pointer cursor for CopyText
This commit is contained in:
parent
185464c0ae
commit
396a39372d
|
@ -7,7 +7,7 @@ interface Props {
|
||||||
|
|
||||||
export const CopyText: React.FC<Props> = ({ text, displayText }) => (
|
export const CopyText: React.FC<Props> = ({ text, displayText }) => (
|
||||||
<div
|
<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) => {
|
onClick={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
navigator.clipboard.writeText(text);
|
navigator.clipboard.writeText(text);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user