chore: update various components and services for improved functionality and consistency, including formatting adjustments and minor refactors
This commit is contained in:
@@ -100,7 +100,15 @@ export function usePageNavigation({
|
||||
}
|
||||
const step = isDoublePage && shouldShowDoublePage(currentPage) ? 2 : 1;
|
||||
navigateToPage(Math.min(pages.length, currentPage + step));
|
||||
}, [currentPage, pages.length, isDoublePage, shouldShowDoublePage, navigateToPage, nextBook, router]);
|
||||
}, [
|
||||
currentPage,
|
||||
pages.length,
|
||||
isDoublePage,
|
||||
shouldShowDoublePage,
|
||||
navigateToPage,
|
||||
nextBook,
|
||||
router,
|
||||
]);
|
||||
|
||||
// Cleanup - Sync final sans debounce
|
||||
useEffect(() => {
|
||||
@@ -122,4 +130,4 @@ export function usePageNavigation({
|
||||
handlePreviousPage,
|
||||
handleNextPage,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user