refactor: remove unused refs

This commit is contained in:
OllyNicholass
2024-10-22 20:15:27 +01:00
parent 090224fc70
commit 6959bcdd04
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
<script src="https://js.stripe.com/v3/" lang="ts"> <script src="https://js.stripe.com/v3/" lang="ts">
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
import { basket, type Basket, type Item } from '$lib/stores/basket.js'; import { basket, type Basket } from '$lib/stores/basket.js';
import BasketItem from '$lib/components/checkout/BasketItem.svelte'; import BasketItem from '$lib/components/checkout/BasketItem.svelte';
export let data; export let data;
let { supabase, session, url } = data; let { supabase, session } = data;
$: ({ supabase, session, url } = data); $: ({ supabase, session } = data);
let localBasket: Basket; let localBasket: Basket;
const unsubscribe = basket.subscribe((value) => { const unsubscribe = basket.subscribe((value) => {
+1 -1
View File
@@ -1,6 +1,6 @@
<script lang="ts"> <script lang="ts">
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
import { basket, type Basket, type Item } from '$lib/stores/basket.js'; import { basket, type Basket } from '$lib/stores/basket.js';
import OrderConfirmationItem from '$lib/components/checkout/OrderConfirmationItem.svelte'; import OrderConfirmationItem from '$lib/components/checkout/OrderConfirmationItem.svelte';
import { formatCurrency } from '$lib/utils/currency'; import { formatCurrency } from '$lib/utils/currency';
import type { PageData } from './$types'; import type { PageData } from './$types';
+1 -1
View File
@@ -1,7 +1,7 @@
<script lang="ts"> <script lang="ts">
import { onDestroy } from 'svelte'; import { onDestroy } from 'svelte';
import { redirect } from '@sveltejs/kit'; import { redirect } from '@sveltejs/kit';
import { basket, type Basket, type Item } from '$lib/stores/basket.js'; import { basket, type Basket } from '$lib/stores/basket.js';
import { general } from '$lib/stores/generalStore.js'; import { general } from '$lib/stores/generalStore.js';
/** @type {import('./$types').PageData} */ /** @type {import('./$types').PageData} */