Skip to content

Commit

Permalink
fix(ui, minifront): #1764: fix copy button styles (#1794)
Browse files Browse the repository at this point in the history
* fix(minifront): #1590: fix copy button styles

* chore: changeset

* fix(#1764): fix copy button styles
  • Loading branch information
VanishMax authored Sep 18, 2024
1 parent f9b8c07 commit 75ef4f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/itchy-files-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@repo/ui': patch
---

Fix copy button styles
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ const CopyToClipboard = forwardRef<HTMLButtonElement, CopyToClipboardProps>(
>
{copied ? (
<span className='flex items-center gap-2'>
{successLabel ?? <span className='whitespace-nowrap'>Copied</span>}
{typeof successLabel !== 'undefined' ? (
successLabel
) : (
<span className='whitespace-nowrap'>Copied</span>
)}
<CheckCircledIcon />
</span>
) : (
Expand Down

0 comments on commit 75ef4f5

Please sign in to comment.