adventure card improvements

This commit is contained in:
Sean Morley
2024-07-18 18:37:46 -04:00
parent 704eb6f6de
commit 2ca24b9f15
6 changed files with 65 additions and 47 deletions

View File

@@ -185,6 +185,7 @@
<div class="flex flex-wrap gap-4 mr-4 justify-center content-center">
{#each adventures as adventure}
<AdventureCard
user={data.user}
type={adventure.type}
{adventure}
on:delete={deleteAdventure}

View File

@@ -167,7 +167,7 @@
<h1 class="text-center font-bold text-4xl mb-6">My Collections</h1>
<p class="text-center">This search returned {count} results.</p>
{#if collections.length === 0}
<NotFound />
<NotFound error={undefined} />
{/if}
<div class="p-4">
<button

View File

@@ -77,6 +77,7 @@
{#if isShowingCreateModal}
<AdventureLink
user={data?.user ?? null}
on:close={() => {
isShowingCreateModal = false;
}}
@@ -171,6 +172,7 @@
<div class="flex flex-wrap gap-4 mr-4 justify-center content-center">
{#each adventures as adventure}
<AdventureCard
user={data.user}
on:edit={editAdventure}
on:delete={deleteAdventure}
type={adventure.type}

View File

@@ -48,7 +48,12 @@
<h2 class="text-center font-bold text-2xl mb-4">AdventureLog Results</h2>
<div class="flex flex-wrap gap-4 mr-4 justify-center content-center">
{#each adventures as adventure}
<AdventureCard type={adventure.type} {adventure} on:delete={deleteAdventure} />
<AdventureCard
user={data.user}
type={adventure.type}
{adventure}
on:delete={deleteAdventure}
/>
{/each}
</div>
<div class="divider"></div>