Skip to content

Commit a7e7411

Browse files
committed
course page loading animation
1 parent 081431d commit a7e7411

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

client/src/pages/Course.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script>
22
import {link} from 'svelte-spa-router';
3-
import {ContentCard, CourseNavbar as Navbar} from '../components';
3+
import {ContentCard, CourseNavbar as Navbar, Loading} from '../components';
44
import {getCourse} from '../data';
55
export let id;
66
const response = getCourse(id);
@@ -9,7 +9,7 @@
99
<Navbar />
1010
<div class="course-page">
1111
{#if $response.loading}
12-
<div>Loading...</div>
12+
<div class="loading-wrap"><Loading /></div>
1313
{/if}
1414

1515
{#if $response.error}

0 commit comments

Comments
 (0)