1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-28 09:19:37 +02:00

Add activity types to AdventureCard component and update server files

This commit is contained in:
Sean Morley 2024-04-30 23:10:59 +00:00
parent 6d4e860e43
commit 6a4771cece

View file

@ -49,6 +49,17 @@
<p class="ml-1">{adventure.date}</p>
</div>
{/if}
{#if adventure.activityTypes && adventure.activityTypes.length > 0}
<ul class="flex flex-wrap">
{#each adventure.activityTypes as activity}
<div
class="badge badge-primary mr-1 text-md font-semibold pb-2 pt-1 mb-1"
>
{activity}
</div>
{/each}
</ul>
{/if}
<div class="card-actions justify-end">
{#if type == "mylog"}
<button class="btn btn-primary" on:click={moreInfo}