diff options
| author | Adam Soltys <[email protected]> | 2023-09-21 11:59:12 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-09-21 11:59:12 -0700 |
| commit | 0fc21acf8ba14a3f5e306c9829573f3ac7d0e05f (patch) | |
| tree | 59e749043ecdc3730d97e23ebfe56a2258361631 /src/routes/(app)/payment | |
| parent | 92ff34396242e2a22d0c3f8248dc08451afc7cab (diff) | |
| parent | 3d8943e5bc1fbe7904d04531521f5496962e6efc (diff) | |
| download | coinos-ui-0fc21acf8ba14a3f5e306c9829573f3ac7d0e05f.tar.gz coinos-ui-0fc21acf8ba14a3f5e306c9829573f3ac7d0e05f.zip | |
Merge branch 'master' into swapee
Diffstat (limited to 'src/routes/(app)/payment')
| -rw-r--r-- | src/routes/(app)/payment/[id]/+page.svelte | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte index 1da3f872..5037eec2 100644 --- a/src/routes/(app)/payment/[id]/+page.svelte +++ b/src/routes/(app)/payment/[id]/+page.svelte @@ -1,6 +1,6 @@ <script> import { t } from '$lib/translations'; - import { back, copy, f, s, fiat, post, sats, success } from '$lib/utils'; + import { back, copy, f, s, fiat, post, sats, success, types } from '$lib/utils'; import { Avatar, Icon } from '$comp'; import { format } from 'date-fns'; import { PUBLIC_EXPLORER as expl } from '$env/static/public'; @@ -42,6 +42,19 @@ </a> </div> {/if} + {#if p.type === types.pot} + <div> + <span class="text-lg text-secondary my-auto mr-2">{amount > 0 ? 'From' : 'To'}</span> + <a href={`/pot/${p.memo}`}> + <div class="flex"> + <div class="my-auto"> + <img src="/images/moneypot.png" class="w-12" alt="Pot" /> + </div> + <div class="my-auto ml-1">{p.memo}</div> + </div> + </a> + </div> + {/if} <div> <span class="text-lg text-secondary">Amount</span> <div> @@ -113,7 +126,7 @@ </div> {/if} - {#if ['laughingbean', 'burnabyartigiano', 'milanowestend'].includes(user.username.toLowerCase()) } + {#if ['laughingbean', 'burnabyartigiano', 'milanowestend', 'eotl', 'bigbite', 'edgemontartigiano'].includes(user.username.toLowerCase()) } <button class="text-sm md:text-lg rounded-full border py-2 px-4 hover:opacity-80 min-w-[72px] bg-black text-white" on:click={print}>Print Receipt</button |
