fix: lints
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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={{
|
||||||
|
|||||||
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user