mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Fix type issues (#4176)
This commit is contained in:
@@ -298,8 +298,7 @@ export const LightboxComponent: React.FC<IProps> = ({
|
||||
if (isVisible) {
|
||||
if (index === null) setIndex(initialIndex);
|
||||
document.body.style.overflow = "hidden";
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(Mousetrap as any).pause();
|
||||
Mousetrap.pause();
|
||||
}
|
||||
}, [initialIndex, isVisible, setIndex, index]);
|
||||
|
||||
@@ -323,8 +322,7 @@ export const LightboxComponent: React.FC<IProps> = ({
|
||||
|
||||
hide();
|
||||
document.body.style.overflow = "auto";
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(Mousetrap as any).unpause();
|
||||
Mousetrap.unpause();
|
||||
}, [isFullscreen, hide]);
|
||||
|
||||
const handleClose = (e: React.MouseEvent<HTMLDivElement>) => {
|
||||
|
||||
Reference in New Issue
Block a user