From 24334cb342a05dedae0c0522b2e3bb64a680550b Mon Sep 17 00:00:00 2001 From: Yura Dupyn <2153100+omedusyo@users.noreply.github.com> Date: Fri, 15 May 2026 11:40:13 +0200 Subject: [PATCH] Forgot to update a few comments after refactor. --- src/ui/Picturarium.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/Picturarium.tsx b/src/ui/Picturarium.tsx index 1ff0b83..4ca89e9 100644 --- a/src/ui/Picturarium.tsx +++ b/src/ui/Picturarium.tsx @@ -98,7 +98,7 @@ const Page = { }, previous(page: Page): Page { // Could do - // if (page.page == FIRST_PAGE) { return page } + // if (page.index == FIRST_PAGE) { return page } // this preserves identity of object, so is nicer for `useEffect`, but it's waaaay to subtle. So I'm not relying on that. return { ...page, index: Math.max(FIRST_PAGE, page.index - 1) } }, @@ -291,7 +291,7 @@ function imageGridStyle(dimension: Dimension) { } } -// 2x5 on mobile, 5x2 on desktop (assuming 10 images per page) +// EXAMPLE: 2x5 on mobile, 5x2 on desktop (assuming 10 images per page) function ImagesSkeleton({ visible = true }: { visible?: boolean }) { const images = Array.from({ length: CONFIG.pageSize }) return (