fix: lints

This commit is contained in:
Julien Froidefond
2025-03-02 06:47:38 +01:00
parent a28d36aa53
commit 438d08f3f2
5 changed files with 3 additions and 5 deletions

View File

@@ -40,6 +40,7 @@ export const SinglePage = ({
>
<ImageLoader isLoading={isLoading} />
{pageUrl && (
// eslint-disable-next-line @next/next/no-img-element
<img
src={pageUrl}
style={{

View File

@@ -56,7 +56,7 @@ export const usePageNavigation = ({
}
}
},
[book.id, pages.length]
[book, pages.length]
);
const debouncedSyncReadProgress = useCallback(
@@ -274,7 +274,7 @@ export const usePageNavigation = ({
ClientOfflineBookService.removeCurrentPage(book);
}
};
}, [syncReadProgress]);
}, [syncReadProgress, book]);
const handleDoubleClick = useCallback(() => {
setZoomLevel((prevZoom) => {