diff options
| author | Adam Soltys <[email protected]> | 2025-01-03 15:24:31 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-01-03 15:24:31 -0800 |
| commit | 50296ccde06dc7892b0c6bd1546030f495564b28 (patch) | |
| tree | 444e26008235c9a57ec2756d8b8fa60133d4e4a9 /src/routes/(app)/invoice | |
| parent | 1bfdc18184fd57b741f5ebdfb0e323747f4d06b0 (diff) | |
| download | coinos-ui-50296ccde06dc7892b0c6bd1546030f495564b28.tar.gz coinos-ui-50296ccde06dc7892b0c6bd1546030f495564b28.zip | |
nostr sign in
Diffstat (limited to 'src/routes/(app)/invoice')
| -rw-r--r-- | src/routes/(app)/invoice/[id]/paid/+page.svelte | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/routes/(app)/invoice/[id]/paid/+page.svelte b/src/routes/(app)/invoice/[id]/paid/+page.svelte index a13692d7..bc61d7fe 100644 --- a/src/routes/(app)/invoice/[id]/paid/+page.svelte +++ b/src/routes/(app)/invoice/[id]/paid/+page.svelte @@ -2,29 +2,36 @@ import Amount from "$comp/Amount.svelte"; import Success from "$comp/Success.svelte"; import { t } from "$lib/translations"; + import { loc } from "$lib/utils"; let { data } = $props(); let { amount, currency, rate, received, pending, tip, user, id } = $derived( data.invoice, ); + let locale = $derived(loc(user)); // toast.pop(0); </script> <div class="container px-4 text-center mx-auto"> {#if pending} - <iconify-icon noobserver icon="ph:clock-bold" class="text-warning" width="160" + <iconify-icon + noobserver + icon="ph:clock-bold" + class="text-warning" + width="160" ></iconify-icon> <h1 class="text-3xl md:text-4xl font-bold mb-6">Payment detected</h1> - <Amount amount={pending - tip} {tip} {rate} {currency} /> + <Amount amount={pending - tip} {tip} {rate} {currency} {locale} /> {:else} <Success amount={received - tip} {rate} {tip} {currency} + {locale} title={$t("invoice.paymentSuccessful")} /> {/if} |
