Browse Source

Clean up key and await in publication page

master
buttercat1791 9 months ago
parent
commit
ddb56d07ec
  1. 24
      src/routes/publication/+page.svelte

24
src/routes/publication/+page.svelte

@ -59,22 +59,16 @@ @@ -59,22 +59,16 @@
<meta name="twitter:image" content={image} />
</svelte:head>
{#key data}
<ArticleNav
<ArticleNav
publicationType={data.publicationType}
rootId={data.parser.getRootIndexId()}
indexEvent={data.indexEvent}
/>
<main class="publication {data.publicationType}">
<Publication
rootAddress={data.indexEvent.tagAddress()}
publicationType={data.publicationType}
rootId={data.parser.getRootIndexId()}
indexEvent={data.indexEvent}
/>
{/key}
<main class="publication {data.publicationType}">
{#await data.waitable}
<TextPlaceholder divClass="skeleton-leather w-full" size="xxl" />
{:then}
<Publication
rootAddress={data.indexEvent.tagAddress()}
publicationType={data.publicationType}
indexEvent={data.indexEvent}
/>
{/await}
</main>

Loading…
Cancel
Save