From 16647fb3e177ecf80ae4543eed39b58c1edd438a Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sat, 18 May 2024 17:01:04 +0200 Subject: [PATCH] Reformat --- src/lib/components/NavBar.svelte | 2 +- src/routes/(auth)/login/+page.server.ts | 2 +- src/routes/(auth)/login/+page.svelte | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/components/NavBar.svelte b/src/lib/components/NavBar.svelte index 98f8c70..01a1ea4 100644 --- a/src/lib/components/NavBar.svelte +++ b/src/lib/components/NavBar.svelte @@ -2,7 +2,7 @@ import { enhance } from "$app/forms" import type { Theme, User } from "$lib" import ThemePicker from "./ThemePicker.svelte" - import { page } from '$app/stores'; + import { page } from "$app/stores" let { theme, user } = $props<{ theme: Theme; user: User }>() diff --git a/src/routes/(auth)/login/+page.server.ts b/src/routes/(auth)/login/+page.server.ts index 92a55a4..527e269 100644 --- a/src/routes/(auth)/login/+page.server.ts +++ b/src/routes/(auth)/login/+page.server.ts @@ -8,7 +8,7 @@ export const load = async ({ locals, url }) => { throw redirect(302, "/") } - let from = url.searchParams.get('from') + let from = url.searchParams.get("from") return { from } } diff --git a/src/routes/(auth)/login/+page.svelte b/src/routes/(auth)/login/+page.svelte index ec5e34b..c72bc30 100644 --- a/src/routes/(auth)/login/+page.svelte +++ b/src/routes/(auth)/login/+page.svelte @@ -3,7 +3,7 @@ let { form, data } = $props() - const from = data.from || "/"; + const from = data.from || "/"
@@ -12,7 +12,7 @@ - +