From 58f7d52150456713d3132408668a92d0f6f3d084 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Thu, 15 Apr 2021 23:06:26 +0200 Subject: Port to sveltekit --- src/components/topic/topic.svelte | 80 +++++++++++++++++++-------------------- 1 file changed, 39 insertions(+), 41 deletions(-) (limited to 'src/components/topic') diff --git a/src/components/topic/topic.svelte b/src/components/topic/topic.svelte index 9be7346..181b429 100644 --- a/src/components/topic/topic.svelte +++ b/src/components/topic/topic.svelte @@ -1,46 +1,44 @@ -{#if $store.loading} - -{/if} -{#if $store.error} - -{/if} -{#if topic} -
-

{topic.title}

- - {#if topic.tags.length > 0} - - {/if} - {#each topic.posts as post, index} - - {/each} -
-{/if} +
+

{topic.title}

+ + {#if topic.tags.length > 0} + + {/if} + {#each topic.posts as post, index} + + {/each} +
-- cgit