Skip to content

Commit

Permalink
rearranged loading rendering order in component due to global loader.
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Oct 14, 2023
1 parent 6822209 commit 1c8ecce
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
loadData();
</script>

{#if $loading}
<p>Loading...</p>
{:else if response?.data}
{#if response?.data}
<h1 class="text-xl">Event Details</h1>
<Overview event={response.data}></Overview>
<div class="flex justify-center mt-2">
<a href="/next/event/{id}" class="btn btn-primary btn-sm"> View Event </a>
</div>
{:else if $loading}
<p>Loading...</p>
{:else}
<ErrorMessage message={response?.problem?.errors.general}></ErrorMessage>
{/if}

0 comments on commit 1c8ecce

Please sign in to comment.