Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b577731

Browse files
committed
fixup! fix formatting
1 parent 94e95a4 commit b577731

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/src/components/CopyButton/CopyButton.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ export const CopyButton: React.FC<CopyButtonProps> = ({
4141
const result = document.execCommand("copy")
4242
document.body.removeChild(input)
4343
if (result) {
44-
setIsCopied(true);
44+
setIsCopied(true)
4545
window.setTimeout(() => {
46-
setIsCopied(false);
47-
}, 1000);
46+
setIsCopied(false)
47+
}, 1000)
4848
} else {
4949
const wrappedErr = new Error("copyToClipboard: failed to copy text to clipboard")
5050
if (err instanceof Error) {

0 commit comments

Comments
 (0)