refactor: Remove duplicated notes display from collection page
This commit is contained in:
@@ -753,26 +753,6 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if notes.length > 0}
|
|
||||||
<h1 class="text-center font-bold text-4xl mt-4 mb-4">{$t('adventures.notes')}</h1>
|
|
||||||
<div class="flex flex-wrap gap-4 mr-4 justify-center content-center">
|
|
||||||
{#each notes as note}
|
|
||||||
<NoteCard
|
|
||||||
{note}
|
|
||||||
user={data.user || null}
|
|
||||||
on:edit={(event) => {
|
|
||||||
noteToEdit = event.detail;
|
|
||||||
isNoteModalOpen = true;
|
|
||||||
}}
|
|
||||||
on:delete={(event) => {
|
|
||||||
notes = notes.filter((n) => n.id != event.detail);
|
|
||||||
}}
|
|
||||||
{collection}
|
|
||||||
/>
|
|
||||||
{/each}
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{#if checklists.length > 0}
|
{#if checklists.length > 0}
|
||||||
<h1 class="text-center font-bold text-4xl mt-4 mb-4">{$t('adventures.checklists')}</h1>
|
<h1 class="text-center font-bold text-4xl mt-4 mb-4">{$t('adventures.checklists')}</h1>
|
||||||
<div class="flex flex-wrap gap-4 mr-4 justify-center content-center">
|
<div class="flex flex-wrap gap-4 mr-4 justify-center content-center">
|
||||||
|
|||||||
Reference in New Issue
Block a user