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