From d99a3524fd2649f1a9ce3623333de56a99e06971 Mon Sep 17 00:00:00 2001 From: secondl1ght <85003930+secondl1ght@users.noreply.github.com> Date: Tue, 2 Aug 2022 13:23:59 -0600 Subject: lots of updates, implementing design, refactoring, bug fixes and more --- src/routes/invoice/[id].svelte | 318 ++++++++++++++++++++--------------------- 1 file changed, 159 insertions(+), 159 deletions(-) (limited to 'src/routes/invoice') diff --git a/src/routes/invoice/[id].svelte b/src/routes/invoice/[id].svelte index 17c7de1f..126a474e 100644 --- a/src/routes/invoice/[id].svelte +++ b/src/routes/invoice/[id].svelte @@ -1,5 +1,4 @@ -{#if $invoices[id]?.status !== 'paid'} -
- - -
-
+ + +
-

Add a tip?

- -
- {tipAmountFormatted}{`(${tipAmountSats} SATS)`} - {tipPercent}% -
- - { - customTipAmount = ''; - customInput.value = ''; - tipPercent = e.target.value; - }} - /> + +
+

Add a tip?

-
- {#each tipAmounts as amount} - + {tipAmountFormatted}{`(${tipAmountSats} SATS)`} - {/each} + {tipPercent}% +
-
- $ - handleCustomTipAmount(e)} - class="bg-primary rounded-2xl py-3 px-10 font-semibold mt-2 mr-1 w-full md:w-auto" - placeholder="Other" - /> - + {/each} + +
+ (showMobileTip = false)}>Done + : 'opacity-100'}">$ + handleCustomTipAmount(e)} + class="bg-primary rounded-2xl py-3 px-10 font-semibold mt-2 mr-1 w-full md:w-auto" + placeholder="Other" + /> + +
-
- -