fix: lints
This commit is contained in:
@@ -6,7 +6,6 @@ import { authService } from "@/lib/services/auth.service";
|
||||
import { AppErrorType } from "@/types/global";
|
||||
import { ErrorMessage } from "@/components/ui/ErrorMessage";
|
||||
import { useTranslate } from "@/hooks/useTranslate";
|
||||
import { AppError } from "@/utils/errors";
|
||||
|
||||
interface LoginFormProps {
|
||||
from?: string;
|
||||
|
||||
@@ -8,7 +8,6 @@ import { ERROR_CODES } from "@/constants/errorCodes";
|
||||
import { ErrorMessage } from "@/components/ui/ErrorMessage";
|
||||
import { useTranslate } from "@/hooks/useTranslate";
|
||||
import { getErrorMessage } from "@/utils/errors";
|
||||
import { AppError } from "@/utils/errors";
|
||||
|
||||
interface RegisterFormProps {
|
||||
from?: string;
|
||||
|
||||
@@ -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