We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3442d92 commit 5b91171Copy full SHA for 5b91171
2 files changed
src/components/tray/social-links.tsx
@@ -12,10 +12,10 @@ interface SocialLinksProps {
12
}
13
14
function useLongPress(callback: () => void, delay: number = 3000) {
15
- const timeoutRef = useRef<NodeJS.Timeout | null>(null)
+ const timeoutRef = useRef<number | null>(null)
16
17
const start = useCallback(() => {
18
- timeoutRef.current = setTimeout(() => {
+ timeoutRef.current = window.setTimeout(() => {
19
callback()
20
}, delay)
21
}, [callback, delay])
tsconfig.app.json
@@ -13,7 +13,6 @@
"moduleDetection": "force",
"noEmit": true,
"jsx": "react-jsx",
-
/* Linting */
"strict": true,
"noUnusedLocals": true,
0 commit comments