8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e95a4 commit b577731Copy full SHA for b577731
site/src/components/CopyButton/CopyButton.tsx
@@ -41,10 +41,10 @@ export const CopyButton: React.FC<CopyButtonProps> = ({
41
const result = document.execCommand("copy")
42
document.body.removeChild(input)
43
if (result) {
44
- setIsCopied(true);
+ setIsCopied(true)
45
window.setTimeout(() => {
46
- setIsCopied(false);
47
- }, 1000);
+ setIsCopied(false)
+ }, 1000)
48
} else {
49
const wrappedErr = new Error("copyToClipboard: failed to copy text to clipboard")
50
if (err instanceof Error) {
0 commit comments