diff options
| author | Adam Soltys <[email protected]> | 2022-11-06 11:24:36 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-06 11:24:36 -0800 |
| commit | 1bda2b36e3f7f6c7f7a85647b2bc4ca308012fbe (patch) | |
| tree | 29601126a68556d11e5968d15159b5fc066d2e64 /src/routes/(app)/invoice | |
| parent | 84e8da3e50ba1a35d254346d8fc92a3795d41670 (diff) | |
| download | coinos-ui-1bda2b36e3f7f6c7f7a85647b2bc4ca308012fbe.tar.gz coinos-ui-1bda2b36e3f7f6c7f7a85647b2bc4ca308012fbe.zip | |
invoice requests
Diffstat (limited to 'src/routes/(app)/invoice')
| -rw-r--r-- | src/routes/(app)/invoice/[id]/+page.svelte | 4 | ||||
| -rw-r--r-- | src/routes/(app)/invoice/sent/+page.svelte | 10 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/routes/(app)/invoice/[id]/+page.svelte b/src/routes/(app)/invoice/[id]/+page.svelte index 6de55bae..25ebf227 100644 --- a/src/routes/(app)/invoice/[id]/+page.svelte +++ b/src/routes/(app)/invoice/[id]/+page.svelte @@ -3,7 +3,7 @@ import { back, copy, f, get, sat, reverseFormat, s, sats } from '$lib/utils'; import { onMount, onDestroy } from 'svelte'; import { browser } from '$app/environment'; - import { invoices, last } from '$lib/store'; + import { invoice as inv, invoices, last } from '$lib/store'; import { Icon, Heart, Image, Qr } from '$comp'; import { goto } from '$app/navigation'; import { t } from '$lib/translations'; @@ -24,6 +24,8 @@ let tipPercent = 0; let refresh = (data) => { + $inv = null; + ({ invoice, id } = data); ({ amount, diff --git a/src/routes/(app)/invoice/sent/+page.svelte b/src/routes/(app)/invoice/sent/+page.svelte new file mode 100644 index 00000000..c4cbc5bb --- /dev/null +++ b/src/routes/(app)/invoice/sent/+page.svelte @@ -0,0 +1,10 @@ +<script> + import { Avatar, Icon } from '$comp'; + export let user; +</script> + +Invoice sent to +<div class="flex"> + <Avatar user={$request.requester} size={12} /> + <h1 class="my-auto"><b>{$request.requester.username}</b> is ready to pay</h1> +</div> |
