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

Refactor AdventureCard usage and integrate event calendar components

This commit is contained in:
Sean Morley 2024-12-04 12:38:01 -05:00
parent a39e22b0a8
commit d44cb06e31
10 changed files with 124 additions and 78 deletions

View file

@ -1,5 +1,4 @@
<script lang="ts">
import { deserialize } from '$app/forms';
import type { Adventure, User } from '$lib/types';
import { createEventDispatcher } from 'svelte';
const dispatch = createEventDispatcher();
@ -59,7 +58,7 @@
{/if}
<div class="flex flex-wrap gap-4 mr-4 justify-center content-center">
{#each adventures as adventure}
<AdventureCard user={user ?? null} type="link" {adventure} on:link={add} />
<AdventureCard {user} type="link" {adventure} on:link={add} />
{/each}
{#if adventures.length === 0 && !isLoading}
<p class="text-center text-lg">