Skip to content

Commit a0a0c57

Browse files
chore(ui): knip
1 parent 32ebf82 commit a0a0c57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

invokeai/frontend/web/src/features/gallery/hooks/useGalleryPagination.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import { useListImagesQuery } from 'services/api/endpoints/images';
66

77
// Some logic copied from https://github.com/chakra-ui/zag/blob/1925b7342dc76fb06a7ec59a5a4c0063a4620422/packages/machines/pagination/src/pagination.utils.ts
88

9-
export const range = (start: number, end: number) => {
9+
const range = (start: number, end: number) => {
1010
const length = end - start + 1;
1111
return Array.from({ length }, (_, idx) => idx + start);
1212
};
1313

1414
export const ELLIPSIS = 'ellipsis' as const;
1515

16-
export const getRange = (currentPage: number, totalPages: number, siblingCount: number) => {
16+
const getRange = (currentPage: number, totalPages: number, siblingCount: number) => {
1717
/**
1818
* `2 * ctx.siblingCount + 5` explanation:
1919
* 2 * ctx.siblingCount for left/right siblings

0 commit comments

Comments
 (0)