diff --git a/src/lib/types.ts b/src/lib/types.ts index 6198e0b..66296f8 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -9,3 +9,8 @@ export type NavigationData = { navLinks: NavLink[]; footerLinks: { title: string; url: string }[]; }; + +export type OpeningHours = { + day: string; + hours: string; +}[]; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 7130b87..4a44670 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -14,12 +14,12 @@ $effect(() => { async function fetchNavigation() { navigation = await client.fetch(` - *[_type == "navigation"][0] { - logo, - navLinks, - footerLinks - } - `); + *[_type == "navigation"][0] { + logo, + navLinks, + footerLinks + } + `); } fetchNavigation(); }); @@ -38,25 +38,25 @@