From 32fcc461cd43c8907df5e306d520bb671307eab1 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 7 Nov 2024 21:16:25 -0800 Subject: svelte 5 --- src/routes/(app)/fund/[id]/+page.svelte | 10 +++++----- src/routes/(app)/fund/[id]/sweep/+page.svelte | 6 +++--- src/routes/(app)/fund/[id]/withdraw/+page.svelte | 24 +++++++++++++++--------- 3 files changed, 23 insertions(+), 17 deletions(-) (limited to 'src/routes/(app)/fund') diff --git a/src/routes/(app)/fund/[id]/+page.svelte b/src/routes/(app)/fund/[id]/+page.svelte index b81e2917..0931075a 100644 --- a/src/routes/(app)/fund/[id]/+page.svelte +++ b/src/routes/(app)/fund/[id]/+page.svelte @@ -9,7 +9,7 @@ import { types, copy, f, s, sat, sats } from "$lib/utils"; import { loginRedirect } from "$lib/store"; - export let data; + let { data } = $props(); let { amount, src, payments, rates, user } = data; let { id } = $page.params; @@ -19,10 +19,10 @@ let currency = user ? user.currency : "CAD"; let rate = rates[currency]; - $: amountFiat = parseFloat(((amount * rate) / sats).toFixed(2)); + let amountFiat = $derived(parseFloat(((amount * rate) / sats).toFixed(2))); $loginRedirect = $page.url.pathname; - let show; + let show = $state(); let toggle = () => (show = !show); @@ -83,14 +83,14 @@
@@ -39,7 +45,7 @@
-
+ -- cgit v1.2.3