From 438d08f3f29f5aadae3d0343558901b225ff5b29 Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Sun, 2 Mar 2025 06:47:38 +0100 Subject: [PATCH] fix: lints --- src/app/books/[bookId]/page.tsx | 1 - src/components/auth/LoginForm.tsx | 1 - src/components/auth/RegisterForm.tsx | 1 - src/components/reader/components/SinglePage.tsx | 1 + src/components/reader/hooks/usePageNavigation.ts | 4 ++-- 5 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/app/books/[bookId]/page.tsx b/src/app/books/[bookId]/page.tsx index 1abb12d..cb3fa98 100644 --- a/src/app/books/[bookId]/page.tsx +++ b/src/app/books/[bookId]/page.tsx @@ -2,7 +2,6 @@ import { Suspense } from "react"; import { ClientBookWrapper } from "@/components/reader/ClientBookWrapper"; import { BookSkeleton } from "@/components/skeletons/BookSkeleton"; import { BookService } from "@/lib/services/book.service"; -import { notFound } from "next/navigation"; import { withPageTiming } from "@/lib/hoc/withPageTiming"; import { KomgaBookWithPages } from "@/types/komga"; import { ErrorMessage } from "@/components/ui/ErrorMessage"; diff --git a/src/components/auth/LoginForm.tsx b/src/components/auth/LoginForm.tsx index 5d106d6..44c94a6 100644 --- a/src/components/auth/LoginForm.tsx +++ b/src/components/auth/LoginForm.tsx @@ -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; diff --git a/src/components/auth/RegisterForm.tsx b/src/components/auth/RegisterForm.tsx index 694bce1..e0794d9 100644 --- a/src/components/auth/RegisterForm.tsx +++ b/src/components/auth/RegisterForm.tsx @@ -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; diff --git a/src/components/reader/components/SinglePage.tsx b/src/components/reader/components/SinglePage.tsx index 142f9f6..6d9f074 100644 --- a/src/components/reader/components/SinglePage.tsx +++ b/src/components/reader/components/SinglePage.tsx @@ -40,6 +40,7 @@ export const SinglePage = ({ > {pageUrl && ( + // eslint-disable-next-line @next/next/no-img-element { setZoomLevel((prevZoom) => {