From 28c1f82d45338d6df541e6aa480bbcfe42757169 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 27 Sep 2022 00:08:48 -0700 Subject: cleanup --- src/routes/invoice/[id]/+page.svelte | 44 +++++++----------------------------- 1 file changed, 8 insertions(+), 36 deletions(-) (limited to 'src/routes') diff --git a/src/routes/invoice/[id]/+page.svelte b/src/routes/invoice/[id]/+page.svelte index 0fa34430..ef3ba08e 100644 --- a/src/routes/invoice/[id]/+page.svelte +++ b/src/routes/invoice/[id]/+page.svelte @@ -2,7 +2,7 @@ import { copy, f, get, reverseFormat, s, toggleFullscreen } from '$lib/utils'; import { browser } from '$app/environment'; import { invoices, user } from '$lib/store'; - import { Icon, Image, Qr, Tip } from '$comp'; + import { Icon, Heart, Image, Qr, Tip } from '$comp'; import { goto } from '$app/navigation'; import { t } from '$lib/translations'; @@ -22,7 +22,6 @@ let showCustomAmount = false; let showMobileTip = false; - let image = '/images/invoice.svg'; let qr; let tipPercent = 0; @@ -52,14 +51,7 @@ $: tipAmount = ((tip * rate) / 100000000).toFixed(2); - const amountFormatted = s(amount); - $: invoiceAmountFiatFormatted = f(amountFiat, currency); - - let timeout; - const handleBackButton = () => { - goto(`/${username}/receive`); - };
@@ -67,7 +59,7 @@ class="ml-5 md:ml-20 mt-5 md:mt-10 hover:opacity-80" class:invisible={!$user} disabled={showMobileTip} - on:click={handleBackButton} + on:click={() => goto(`/${username}/receive`)} > @@ -94,7 +86,7 @@ {/if} -
+
@@ -128,9 +105,7 @@ > -
- -
+