add type
This commit is contained in:
parent
8d1dedd9f6
commit
35f3a14787
|
@ -104,7 +104,7 @@ function PhotoViewer(props: Iprops) {
|
|||
|
||||
useEffect(() => {
|
||||
if (!photoSwipe) return;
|
||||
function handleKeyUp(event) {
|
||||
function handleKeyUp(event: KeyboardEvent) {
|
||||
if (!isOpen || showInfo) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue