parent
07eae0a9cd
commit
e9e551bd46
1 changed files with 4 additions and 1 deletions
|
@ -29,7 +29,10 @@ export const CopyToClipboardButton = ({ children, content, label = false, sup =
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
className={(copied ? 'tw:text-success ' : '') + 'tw:daisy-btn tw:w-full tw:lg:w-auto'}
|
className={
|
||||||
|
(copied ? 'tw:text-success ' : '') +
|
||||||
|
'tw:daisy-btn tw:w-full tw:daisy-btn-ghost tw:lg:w-auto'
|
||||||
|
}
|
||||||
onClick={() => handleCopied(content, setCopied, setLoadingStatus, label)}
|
onClick={() => handleCopied(content, setCopied, setLoadingStatus, label)}
|
||||||
>
|
>
|
||||||
{copied ? (
|
{copied ? (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue