CLASSROOMIO-T-180: LMS dashboard improvements

This commit is contained in:
Rotimi Best
2023-09-29 09:25:32 +01:00
parent acfd01316f
commit 8777ab57f9
10 changed files with 69 additions and 208 deletions
@@ -17,8 +17,6 @@
export let isLMS = false;
export let progressRate = 45;
$: console.log(progressRate);
$: formatter = getCurrencyFormatter(currency);
</script>
+5 -1
View File
@@ -1,7 +1,10 @@
import { writable } from 'svelte/store';
import { writable, derived } from 'svelte/store';
import type { Course } from '$lib/utils/types';
export const courses = writable<Course[]>([]);
export const courseInProgress = derived(courses, ($courses) =>
$courses.length > 0 ? $courses.slice(0, 3) : []
);
export const courseMetaDeta = writable({
isLoading: true
});
@@ -23,4 +26,5 @@ export const copyCourseModalInitialState = {
isSaving: false,
error: null
};
export const copyCourseModal = writable({ ...copyCourseModalInitialState });