fix: lint on reader

This commit is contained in:
Julien Froidefond
2025-02-16 22:27:00 +01:00
parent c92156ad12
commit 059bc87ce4
2 changed files with 13 additions and 4 deletions

View File

@@ -5,14 +5,14 @@ interface UsePageNavigationProps {
book: KomgaBook;
pages: number[];
isDoublePage: boolean;
onClose: () => void;
onClose?: () => void;
}
export const usePageNavigation = ({
book,
pages,
isDoublePage,
onClose,
onClose = () => {},
}: UsePageNavigationProps) => {
const [currentPage, setCurrentPage] = useState(book.readProgress?.page || 1);
const [isLoading, setIsLoading] = useState(true);