feat: prompt user to new course modal after welcome modal (#38)
* Update WelcomeModal.svelte to prompt user to new course modal after closing Welcome Modal * pr fixes --------- Co-authored-by: Rotimi Best <[email protected]>
This commit is contained in:
co-authored by
Rotimi Best
parent
7a46d108cb
commit
53c0d65724
@@ -3,9 +3,12 @@
|
||||
import { writable } from 'svelte/store';
|
||||
import { onMount, onDestroy } from 'svelte';
|
||||
import { welcomeModalStore } from './store';
|
||||
import { goto } from '$app/navigation';
|
||||
import { currentOrgPath } from '$lib/utils/store/org';
|
||||
|
||||
const closeModal = () => {
|
||||
$welcomeModalStore.open = false;
|
||||
goto($currentOrgPath + '/courses?create=true');
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user