From 3314fe8b0e7fb2323e181b3552735ef72a0eede2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Nuno=20Mota?= Date: Mon, 1 May 2023 01:38:35 +0100 Subject: [PATCH] fix: failed eslint checks (#1616) --- web/src/hooks/useEvent.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/web/src/hooks/useEvent.ts b/web/src/hooks/useEvent.ts index 8b218d472..3e9af77d7 100644 --- a/web/src/hooks/useEvent.ts +++ b/web/src/hooks/useEvent.ts @@ -15,11 +15,9 @@ function useLatestValue(value: T) { } // TODO: Add React.useEvent ?? once the useEvent hook is available -function useEvent any, P extends any[] = Parameters, R = ReturnType>( - cb: (...args: P) => R -) { +function useEvent any, P extends any[] = Parameters, R = ReturnType>(cb: (...args: P) => R) { const cache = useLatestValue(cb); return React.useCallback((...args: P) => cache.current(...args), [cache]); -}; +} export default useEvent;