From 9fb49a6a61239ac30d6b85befc4f33a5f3469611 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 8 Nov 2024 17:06:38 -0800 Subject: fix tip dialog --- src/lib/invoice.ts | 2 + .../(app)/[username]/(profile)/+layout.svelte | 53 ++++++----------- src/routes/(app)/invoice/[id]/tip/+page.svelte | 67 +++++++--------------- 3 files changed, 41 insertions(+), 81 deletions(-) (limited to 'src') diff --git a/src/lib/invoice.ts b/src/lib/invoice.ts index a48e02a4..4d1243e6 100644 --- a/src/lib/invoice.ts +++ b/src/lib/invoice.ts @@ -8,6 +8,8 @@ export default async ({ cookies, request }) => { const rates = await get("/rates"); const amount = parseInt(form.get("amount")); + console.log("TIP", form.get("tip")) + let invoice = { aid, amount, diff --git a/src/routes/(app)/[username]/(profile)/+layout.svelte b/src/routes/(app)/[username]/(profile)/+layout.svelte index 65911eee..2be99adc 100644 --- a/src/routes/(app)/[username]/(profile)/+layout.svelte +++ b/src/routes/(app)/[username]/(profile)/+layout.svelte @@ -1,6 +1,4 @@ @@ -184,10 +165,12 @@
- +
@@ -201,7 +184,8 @@
@@ -262,7 +247,7 @@ {#if user?.admin && user.username !== subject.username} -
+