summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/components/share/copy-button.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/web/src/components/share/copy-button.tsx')
-rw-r--r--packages/web/src/components/share/copy-button.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/web/src/components/share/copy-button.tsx b/packages/web/src/components/share/copy-button.tsx
index 892d5553f..6f51bb4d8 100644
--- a/packages/web/src/components/share/copy-button.tsx
+++ b/packages/web/src/components/share/copy-button.tsx
@@ -21,7 +21,11 @@ export function CopyButton(props: CopyButtonProps) {
return (
<div data-component="copy-button" class={styles.root}>
<button type="button" onClick={handleCopyClick} data-copied={copied() ? true : undefined}>
- {copied() ? <IconCheckCircle width={16} height={16} /> : <IconClipboard width={16} height={16} />}
+ {copied() ? (
+ <IconCheckCircle width={16} height={16} />
+ ) : (
+ <IconClipboard width={16} height={16} />
+ )}
</button>
</div>
)