From 495b64aaecbaba6b5ce7fa46777e77a84d7dc8d8 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Sat, 17 Feb 2024 11:35:55 -0600 Subject: [PATCH] Prioritize initial /grid photos --- src/app/grid/page.tsx | 2 +- src/components/ImageSmall.tsx | 3 +++ src/photo/PhotoGrid.tsx | 3 +++ src/photo/PhotoSmall.tsx | 3 +++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/app/grid/page.tsx b/src/app/grid/page.tsx index 5d94e19e..6a139fc8 100644 --- a/src/app/grid/page.tsx +++ b/src/app/grid/page.tsx @@ -36,7 +36,7 @@ export default async function GridPage() { photos.length > 0 ? - + ).concat(additionalTile ?? [])} /> diff --git a/src/photo/PhotoSmall.tsx b/src/photo/PhotoSmall.tsx index b560de25..48883fff 100644 --- a/src/photo/PhotoSmall.tsx +++ b/src/photo/PhotoSmall.tsx @@ -15,6 +15,7 @@ export default function PhotoSmall({ simulation, selected, showAdminMenu, + priority, }: { photo: Photo tag?: string @@ -22,6 +23,7 @@ export default function PhotoSmall({ simulation?: FilmSimulation selected?: boolean showAdminMenu?: boolean + priority?: boolean }) { return ( );