Added basic userstore
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
<script>
|
||||
import '../app.postcss';
|
||||
import Sidebar from '$lib/Sidebar.svelte';
|
||||
import UserStore from '$lib/UserStore';
|
||||
|
||||
$: isLoggedIn = false;
|
||||
|
||||
UserStore.init();
|
||||
const unsubscribe = UserStore.subscribe((value) => {
|
||||
isLoggedIn = value.isLoggedIn;
|
||||
});
|
||||
onDestroy(unsubscribe);
|
||||
</script>
|
||||
|
||||
<div style="min-height: 640px;" class="bg-white dark:bg-gray-800">
|
||||
|
||||
Reference in New Issue
Block a user