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

@@ -2,7 +2,6 @@ import { Suspense } from "react";
import { ClientBookWrapper } from "@/components/reader/ClientBookWrapper"; import { ClientBookWrapper } from "@/components/reader/ClientBookWrapper";
import { BookSkeleton } from "@/components/skeletons/BookSkeleton"; import { BookSkeleton } from "@/components/skeletons/BookSkeleton";
import { BookService } from "@/lib/services/book.service"; import { BookService } from "@/lib/services/book.service";
import { notFound } from "next/navigation";
import { withPageTiming } from "@/lib/hoc/withPageTiming"; import { withPageTiming } from "@/lib/hoc/withPageTiming";
import { KomgaBookWithPages } from "@/types/komga"; import { KomgaBookWithPages } from "@/types/komga";
import { ErrorMessage } from "@/components/ui/ErrorMessage"; import { ErrorMessage } from "@/components/ui/ErrorMessage";

View File

@@ -6,7 +6,6 @@ import { authService } from "@/lib/services/auth.service";
import { AppErrorType } from "@/types/global"; import { AppErrorType } from "@/types/global";
import { ErrorMessage } from "@/components/ui/ErrorMessage"; import { ErrorMessage } from "@/components/ui/ErrorMessage";
import { useTranslate } from "@/hooks/useTranslate"; import { useTranslate } from "@/hooks/useTranslate";
import { AppError } from "@/utils/errors";
interface LoginFormProps { interface LoginFormProps {
from?: string; from?: string;

View File

@@ -8,7 +8,6 @@ import { ERROR_CODES } from "@/constants/errorCodes";
import { ErrorMessage } from "@/components/ui/ErrorMessage"; import { ErrorMessage } from "@/components/ui/ErrorMessage";
import { useTranslate } from "@/hooks/useTranslate"; import { useTranslate } from "@/hooks/useTranslate";
import { getErrorMessage } from "@/utils/errors"; import { getErrorMessage } from "@/utils/errors";
import { AppError } from "@/utils/errors";
interface RegisterFormProps { interface RegisterFormProps {
from?: string; from?: string;

View File

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

View File

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