From 35f3a14787a8351b8cba285300709c3f12bd159f Mon Sep 17 00:00:00 2001 From: Abhinav Date: Tue, 22 Nov 2022 20:19:57 +0530 Subject: [PATCH] add type --- src/components/PhotoViewer/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PhotoViewer/index.tsx b/src/components/PhotoViewer/index.tsx index 056b8a81a..30eb8bbbf 100644 --- a/src/components/PhotoViewer/index.tsx +++ b/src/components/PhotoViewer/index.tsx @@ -104,7 +104,7 @@ function PhotoViewer(props: Iprops) { useEffect(() => { if (!photoSwipe) return; - function handleKeyUp(event) { + function handleKeyUp(event: KeyboardEvent) { if (!isOpen || showInfo) { return; }