-
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"
- />
-
-
-
-
-
-
-
-
(showMobileTip = true)}
- disabled={showMobileTip}
- >
- Add a tip
-
-
-
Scan to pay {username}
-
-
- Invoice
- {invoiceAmountFiatFormatted}
- {`(${amountFormatted} SATS)`}
-
-
-
-
Tip
-
{tipAmountFormatted}
- {`(${tipAmountSats} SATS)`}
+
+ (showMobileTip = true)}
+ disabled={showMobileTip}
+ >
+
+
+ Add a tip
+
+
+
Scan to pay {username}
-
-
Total
-
{totalAmountFormatted}
- {`(${totalAmountSats} SATS)`}
+
copy(text)}
+ class="border {showMobileTip
+ ? 'border-gray-400'
+ : 'border-lightgrey'} px-5 md:px-0 w-[292px] h-[302px] md:w-[300px] md:h-[300px] rounded-3xl block md:flex justify-center items-center cursor-pointer"
+ />
+
+
+
+ Invoice
+ {invoiceAmountFiatFormatted}
+ {`(${amountFormatted} SATS)`}
+
+
+
+ Tip
+ {tipAmountFormatted}
+ {`(${tipAmountSats} SATS)`}
+
+
+
+ Total
+ {totalAmountFormatted}
+ {`(${totalAmountSats} SATS)`}
+
-
-{:else}
-
-
-
Payment Successful!
- {totalAmountFormatted} {$preferredCurrency}
- ({totalAmountSats} SATS)
-
- Done
-
-
+ {:else}
+
+
+
Payment Successful!
+
+ {totalAmountFormatted}
+ {$preferredCurrency}
+
+ ({totalAmountSats} SATS)
+
+ Done
+
+
+ {/if}
{/if}
diff --git a/src/routes/invoice/[id].svelte b/src/routes/invoice/[id].svelte
index 92ffb61a..3170feba 100644
--- a/src/routes/invoice/[id].svelte
+++ b/src/routes/invoice/[id].svelte
@@ -147,7 +147,7 @@
Add a tip?
--
cgit v1.2.3
From bf70817d4a3440b5ea105e62648d7c5c67047fd9 Mon Sep 17 00:00:00 2001
From: secondl1ght <85003930+secondl1ght@users.noreply.github.com>
Date: Tue, 2 Aug 2022 20:37:31 -0600
Subject: minor adjustments and additions
---
src/components/LandingHeader.svelte | 4 +---
src/routes/invoice/[id].svelte | 8 ++++----
src/routes/jobs.svelte | 4 ++++
3 files changed, 9 insertions(+), 7 deletions(-)
(limited to 'src/routes/invoice')
diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte
index 65ea607c..a8abfaba 100644
--- a/src/components/LandingHeader.svelte
+++ b/src/components/LandingHeader.svelte
@@ -15,9 +15,7 @@
};
-