From e34e0fee81a0aaebd8ff89986c1d4138c7b499c8 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 4 Oct 2022 20:28:29 -0700 Subject: tipping fixes --- src/components/Tip.svelte | 137 +++++++++++++++++++--------------------------- 1 file changed, 55 insertions(+), 82 deletions(-) (limited to 'src/components/Tip.svelte') diff --git a/src/components/Tip.svelte b/src/components/Tip.svelte index 83bf0dfa..093fef46 100644 --- a/src/components/Tip.svelte +++ b/src/components/Tip.svelte @@ -1,24 +1,15 @@
-
- - -
-

{$t('invoice.addTipq')}

- {#if !showCustomAmount} -
- {f(tipAmount, currency)}{`(${s(tip)} SAT)`} - {Math.round(tipPercent)}% -
- - (showMobileTip = false)} - /> - {/if} -
+
+ + + + + +

{$t('invoice.addTipq')}

{#if !showCustomAmount} +
+ {f(tipAmount, currency)}{`(${s(tip)} SAT)`} + {Math.round(tipPercent)}% +
+ + (showMobileTip = false)} + /> {#each tipAmounts as amount} +
{/if} - {#if showCustomAmount} + + Apply
- {:else} -
- -
- {/if} - + + {/if}