Skip to content

Commit

Permalink
Display total number of photos on recap page
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewStanciu committed Apr 4, 2023
1 parent a9943dd commit 61b97a0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions components/image-grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ const ImageGrid = ({
}
}}
>
See all photos
{images.length > 3
? `See ${images.length - 3} more photos`
: 'See all photos'}
</button>
</div>
{!smallScreen && (
Expand All @@ -69,7 +71,9 @@ const ImageGrid = ({
}
}}
>
See all photos
{images.length > 3
? `See ${images.length - 3} more photos`
: 'See all photos'}
</button>
)}
<Gallery images={images} index={index} open={open} onClose={onClose} />
Expand Down

1 comment on commit 61b97a0

@vercel
Copy link

@vercel vercel bot commented on 61b97a0 Apr 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.