1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-21 22:09:36 +02:00

fix: update CollectionCard to use adventures from collection instead of a separate prop

This commit is contained in:
Sean Morley 2025-06-03 19:03:36 -04:00
parent 50a80a8116
commit cf108ecd3a

View file

@ -23,7 +23,6 @@
const dispatch = createEventDispatcher(); const dispatch = createEventDispatcher();
export let type: String | undefined | null; export let type: String | undefined | null;
export let adventures: Adventure[] = [];
let isShareModalOpen: boolean = false; let isShareModalOpen: boolean = false;
function editAdventure() { function editAdventure() {
@ -88,7 +87,7 @@
> >
<!-- Image Carousel --> <!-- Image Carousel -->
<div class="relative overflow-hidden rounded-t-2xl"> <div class="relative overflow-hidden rounded-t-2xl">
<CardCarousel {adventures} /> <CardCarousel adventures={collection.adventures} />
<!-- Badge Overlay --> <!-- Badge Overlay -->
<div class="absolute top-4 left-4 flex flex-col gap-2"> <div class="absolute top-4 left-4 flex flex-col gap-2">