Update libs/ui-toolkit/src/components/copy-with-tooltip/copy-with-tooltip.tsx

Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
This commit is contained in:
m.ray
2023-09-28 09:50:00 +01:00
committed by GitHub
co-authored by Matthew Russell
parent ef3d092e65
commit 24a7a4ea66
@@ -15,7 +15,7 @@ export function CopyWithTooltip({ children, text }: CopyWithTooltipProps) {
return (
<CopyToClipboard text={text} onCopy={() => setCopied(true)}>
{/* Needs this wrapping div as tooltip component interfere with element used to capture click for copy */}
{/* Needs this wrapping div as tooltip component interferes with element used to capture click for copy */}
<span>
<Tooltip description="Copied" open={copied} align="center">
{children}