From 628b97266f464a5b1aaf855cb8c0081e5c16088b Mon Sep 17 00:00:00 2001 From: Lightling Date: Mon, 18 Mar 2024 00:52:49 -0400 Subject: [PATCH] use key-value pairs for titles/ids --- src/components/galleries/gallery-tile.vue | 9 +++++---- src/routes.ts | 2 +- src/types/galleries/galleryList.ts | 6 ++++-- src/views/gallery-list.vue | 24 ++++++++++++----------- 4 files changed, 23 insertions(+), 18 deletions(-) diff --git a/src/components/galleries/gallery-tile.vue b/src/components/galleries/gallery-tile.vue index 464ca6b..3a2c807 100644 --- a/src/components/galleries/gallery-tile.vue +++ b/src/components/galleries/gallery-tile.vue @@ -5,23 +5,24 @@ import type { GalleryEntry } from 'src/types/galleries/galleryList' defineProps<{ entry: GalleryEntry, + id: string, }>() defineEmits<{ - (e: 'click', value: { event: Event, entry: GalleryEntry }): void + (e: 'click', value: { event: Event, id: string }): void }>()