Skip to content

Commit

Permalink
Deferred copy revert.
Browse files Browse the repository at this point in the history
Signed-off-by: phixMe <[email protected]>
  • Loading branch information
phixMe committed Oct 22, 2024
1 parent b85b954 commit 1376f3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/src/components/core/copy/MqCopy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ const MqEmpty: React.FC<MqCopyProps> = ({ string }) => {
navigator.clipboard.writeText(string)
setOpen(true)
setHasCopied(true)
setTimeout(() => {
setHasCopied(false)
}, 3000)
}}
aria-label='copy'
size={'small'}
Expand Down

0 comments on commit 1376f3b

Please sign in to comment.