Skip to content

Commit 931f723

Browse files
committed
Clear copied state after 2 seconds
1 parent 21bd802 commit 931f723

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

website/src/components/install-button.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ export function InstallButton() {
1616
onClick={() => {
1717
navigator.clipboard.writeText(text);
1818
setCopied(true);
19+
setTimeout(() => {
20+
setCopied(false);
21+
}, 2000);
1922
}}
2023
>
2124
{text}

0 commit comments

Comments
 (0)