refactor(#29): remove unused url

Removing as new MagicLink component doesnt need the prop
This commit is contained in:
OllyNicholass
2024-09-24 20:50:18 +01:00
parent b2d4d005e1
commit c674eb7c8d
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -11,8 +11,8 @@
import MagicLink from '$lib/components/MagicLink.svelte';
export let data;
let { supabase, session, url } = data;
$: ({ supabase, session, url } = data);
let { supabase, session } = data;
$: ({ supabase, session } = data);
let localBasket: Basket;
const unsubscribeToBasket = basket.subscribe((value) => {
+2 -2
View File
@@ -2,7 +2,7 @@ import { createBrowserClient, createServerClient, isBrowser } from '@supabase/ss
import { PUBLIC_SUPABASE_ANON_KEY, PUBLIC_SUPABASE_URL } from '$env/static/public';
import type { LayoutLoad } from './$types';
export const load: LayoutLoad = async ({ fetch, data, depends, url }) => {
export const load: LayoutLoad = async ({ fetch, data, depends }) => {
depends('supabase:auth');
const supabase = isBrowser()
@@ -31,5 +31,5 @@ export const load: LayoutLoad = async ({ fetch, data, depends, url }) => {
data: { session }
} = await supabase.auth.getSession();
return { supabase, session, url: url.origin };
return { supabase, session };
};
+2 -2
View File
@@ -2,8 +2,8 @@
import MagicLink from '$lib/components/MagicLink.svelte';
export let data;
let { supabase, session, url } = data;
$: ({ supabase, session, url } = data);
let { supabase, session } = data;
$: ({ supabase, session } = data);
</script>
{#if session !== null}