fix: lints
This commit is contained in:
@@ -40,6 +40,7 @@ export const SinglePage = ({
|
||||
>
|
||||
<ImageLoader isLoading={isLoading} />
|
||||
{pageUrl && (
|
||||
// eslint-disable-next-line @next/next/no-img-element
|
||||
<img
|
||||
src={pageUrl}
|
||||
style={{
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user