Fix CopyLinkButton children type error

This commit is contained in:
Joachim Robert 2019-02-06 18:55:50 +01:00
parent 6420dccd52
commit c09feafde8

View file

@ -31,7 +31,7 @@ export default function CopyLinkButton(props: CopyLinkProps) {
{...props}
>
<Icon glyph="link" size={24} />
{isClicked ? 'Copied!' : children}
<span>{isClicked ? 'Copied!' : children}</span>
</StyledCopyLinkButton>
);
}