adventure card improvements
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user