fix errors
This commit is contained in:
@@ -3,10 +3,12 @@
|
|||||||
import { user } from '$stores/user';
|
import { user } from '$stores/user';
|
||||||
import type { LayoutData } from './$types';
|
import type { LayoutData } from './$types';
|
||||||
|
|
||||||
let { data } = $props<LayoutData>();
|
let { data, children } = $props<LayoutData>();
|
||||||
|
|
||||||
// Set the user store with data from the server
|
// Set the user store with data from the server
|
||||||
$: $user = data.user;
|
$effect(() => {
|
||||||
|
$user = data.user;
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="layout">
|
<div class="layout">
|
||||||
|
|||||||
Reference in New Issue
Block a user