From a0a0c577895245e70eec1623e03cc61f61295736 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 27 Jun 2024 13:46:16 +1000 Subject: [PATCH] chore(ui): knip --- .../web/src/features/gallery/hooks/useGalleryPagination.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/web/src/features/gallery/hooks/useGalleryPagination.ts b/invokeai/frontend/web/src/features/gallery/hooks/useGalleryPagination.ts index 158c722092..cfd4a488c3 100644 --- a/invokeai/frontend/web/src/features/gallery/hooks/useGalleryPagination.ts +++ b/invokeai/frontend/web/src/features/gallery/hooks/useGalleryPagination.ts @@ -6,14 +6,14 @@ import { useListImagesQuery } from 'services/api/endpoints/images'; // Some logic copied from https://github.com/chakra-ui/zag/blob/1925b7342dc76fb06a7ec59a5a4c0063a4620422/packages/machines/pagination/src/pagination.utils.ts -export const range = (start: number, end: number) => { +const range = (start: number, end: number) => { const length = end - start + 1; return Array.from({ length }, (_, idx) => idx + start); }; export const ELLIPSIS = 'ellipsis' as const; -export const getRange = (currentPage: number, totalPages: number, siblingCount: number) => { +const getRange = (currentPage: number, totalPages: number, siblingCount: number) => { /** * `2 * ctx.siblingCount + 5` explanation: * 2 * ctx.siblingCount for left/right siblings