diff --git a/src/routes/app/+layout.svelte b/src/routes/app/+layout.svelte index 2bcbc78..1c04bb5 100644 --- a/src/routes/app/+layout.svelte +++ b/src/routes/app/+layout.svelte @@ -8,11 +8,11 @@ import { Cog, LogOut, MessageCircleMore, UsersRound } from 'lucide-svelte'; import type { Snippet } from 'svelte'; import { onMount } from 'svelte'; - import type { PageData } from './$types'; + import type { LayoutData } from './$types'; type Props = { children: Snippet; - data: PageData; + data: LayoutData; }; let { children, data }: Props = $props(); diff --git a/src/routes/app/settings/+page.server.ts b/src/routes/app/settings/+page.server.ts index 765f48d..4f86407 100644 --- a/src/routes/app/settings/+page.server.ts +++ b/src/routes/app/settings/+page.server.ts @@ -27,7 +27,7 @@ export const load = async (event) => { }; export const actions = { - update: async (event) => { + default: async (event) => { const form = await event.request.formData(); const tenantId = event.locals.tenant.id; diff --git a/src/routes/app/settings/+page.svelte b/src/routes/app/settings/+page.svelte index 360d245..8c96065 100644 --- a/src/routes/app/settings/+page.svelte +++ b/src/routes/app/settings/+page.svelte @@ -2,11 +2,10 @@ import { enhance } from '$app/forms'; import { Button } from '$lib/components/Actions'; import { TextInput } from '$lib/components/DataInput'; + import Divider from '$lib/components/Layout/Divider.svelte'; import { messages } from '$lib/i18n'; import { Fingerprint, KeyRound, PhoneOutgoing } from 'lucide-svelte'; - import { fade } from 'svelte/transition'; import type { ActionData, PageData } from './$types'; - import Divider from '$lib/components/Layout/Divider.svelte'; type Props = { data: PageData; @@ -17,18 +16,18 @@ let configs = $derived(form?.configs ?? data.configs); -