mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
refactor: migrate to props and runes
this was done using sv migrate and a bit of ai to fully migrate
This commit is contained in:
@@ -11,7 +11,12 @@
|
||||
import { page } from '$app/state';
|
||||
import type { LayoutData } from './$types';
|
||||
|
||||
export let data: LayoutData;
|
||||
interface Props {
|
||||
data: LayoutData;
|
||||
children?: import('svelte').Snippet;
|
||||
}
|
||||
|
||||
let { data, children }: Props = $props();
|
||||
|
||||
async function syncUserFromToken() {
|
||||
const token = getToken();
|
||||
@@ -103,7 +108,7 @@
|
||||
</svelte:head>
|
||||
|
||||
<Navbar {data} />
|
||||
<slot />
|
||||
{@render children?.()}
|
||||
<Footer />
|
||||
|
||||
<ModalHost />
|
||||
|
||||
Reference in New Issue
Block a user