Skip to content

Commit

Permalink
counter
Browse files Browse the repository at this point in the history
  • Loading branch information
webdevcody committed Feb 2, 2024
1 parent 60fa59d commit 19629f2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/thumbnails/[thumbnailId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default function ThumbnailPage() {
thumbnail={thumbnail}
/>

<div className="flex justify-between gap-4">
<div className="flex justify-between gap-4 items-center">
<Button
onClick={() => {
const nextIndex = currentImageIndex - 1;
Expand All @@ -173,6 +173,11 @@ export default function ThumbnailPage() {
>
<ArrowLeftIcon size={"14"} /> Previous
</Button>

<div>
{currentImageIndex + 1} of {thumbnail.images.length}
</div>

<Button
onClick={() => {
const nextIndex = currentImageIndex + 1;
Expand Down

0 comments on commit 19629f2

Please sign in to comment.