Skip to content

Commit

Permalink
feat: prompt user to new course modal after welcome modal (#38)
Browse files Browse the repository at this point in the history
* Update WelcomeModal.svelte to prompt user to new course modal after closing Welcome Modal

* pr fixes

---------

Co-authored-by: Rotimi Best <best@classroomio.com>
  • Loading branch information
sherylchenn and rotimi-best committed Nov 23, 2023
1 parent 7a46d10 commit 53c0d65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/components/WelcomeModal/WelcomeModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit 53c0d65

Please sign in to comment.