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 (