mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-06 04:21:55 +00:00
Merge branch 'partial-uwu' into uwu-search-page
# Conflicts: # astro.config.ts # package-lock.json # package.json # src/types/plausible.d.ts # src/utils/debounce.ts
This commit is contained in:
@@ -16,7 +16,7 @@ export function usePagination(page: PageInfo) {
|
||||
|
||||
const firstPageNum = Math.max(
|
||||
2,
|
||||
Math.min(page.lastPage - PAGE_BUTTON_COUNT, page.currentPage - 1)
|
||||
Math.min(page.lastPage - PAGE_BUTTON_COUNT, page.currentPage - 1),
|
||||
);
|
||||
|
||||
const pages = [
|
||||
@@ -32,7 +32,7 @@ export function usePagination(page: PageInfo) {
|
||||
page.lastPage,
|
||||
].filter(
|
||||
// ensure that displayed pages are within the desired range
|
||||
(i) => (i === "..." && isDotsEnabled) || (+i > 0 && +i <= page.lastPage)
|
||||
(i) => (i === "..." && isDotsEnabled) || (+i > 0 && +i <= page.lastPage),
|
||||
);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user