Skip to content

Commit

Permalink
add edit button
Browse files Browse the repository at this point in the history
  • Loading branch information
docimin committed Jul 12, 2024
1 parent 8eb0281 commit 33c8d8e
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/app/[locale]/(main)/gallery/[galleryId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,25 @@ export default async function GalleryPage({ params: { galleryId } }) {
)}
target={'_blank'}
>
<Button>See full image</Button>
<Button variant={'outline'}>
See full image
</Button>
</Link>
{userSelf?.$id === userId && (
<Link
href={{
pathname:
'/account/gallery/[galleryId]',
params: {
galleryId: galleryDocuments.$id,
},
}}
>
<Button variant={'outline'}>
Edit image
</Button>
</Link>
)}
</div>
</dl>
</div>
Expand Down

0 comments on commit 33c8d8e

Please sign in to comment.