Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ui/frontend/Output/Gist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@

const startCopy = useCallback(() => {
setCopied(true);
window.navigator.clipboard.writeText(href);

setTimeout(() => {
setCopied(false);
}, 1000);
}, []);

Check warning on line 46 in ui/frontend/Output/Gist.tsx

View workflow job for this annotation

GitHub Actions / Build frontend

React Hook useCallback has a missing dependency: 'href'. Either include it or remove the dependency array

return (
<p className={copied ? styles.active : styles.container}>
Expand Down