Skip to content

Commit

Permalink
Remove tooltip from copy button for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed May 6, 2024
1 parent f4462b3 commit 57ab327
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/application/components/CopyButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { ComponentPropsWithoutRef } from "react";
import CopyToClipboard from "react-copy-to-clipboard";
import { Button } from "./Button";
import IconCopy from "@apollo/icons/default/IconCopy.svg";
import { Tooltip } from "./Tooltip";

type ButtonProps = ComponentPropsWithoutRef<typeof Button>;

Expand All @@ -20,16 +19,14 @@ export function CopyButton({
}: CopyButtonProps) {
return (
<CopyToClipboard text={text}>
<Tooltip content="Copy">
<Button
{...rest}
aria-label="Copy"
className={className}
size={size}
variant="hidden"
icon={<IconCopy />}
/>
</Tooltip>
<Button
{...rest}
aria-label="Copy"
className={className}
size={size}
variant="hidden"
icon={<IconCopy />}
/>
</CopyToClipboard>
);
}

0 comments on commit 57ab327

Please sign in to comment.