diff options
| author | Adam Soltys <[email protected]> | 2024-09-24 20:12:43 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-24 20:12:43 -0700 |
| commit | d49d4119811dee9270f0858f3f03e5d8cd0d95ba (patch) | |
| tree | 42101a3ccf47f7b7290637700b90a843476e56f7 /src/routes/(app)/payment | |
| parent | 20c0c52f8b850bfbab490735b0b5cd5d08851488 (diff) | |
| parent | 9531ccbdf01b07c392b1b5cb6d8ad4680ee29d2c (diff) | |
| download | coinos-ui-d49d4119811dee9270f0858f3f03e5d8cd0d95ba.tar.gz coinos-ui-d49d4119811dee9270f0858f3f03e5d8cd0d95ba.zip | |
Merge branch 'self-custody'
Diffstat (limited to 'src/routes/(app)/payment')
| -rw-r--r-- | src/routes/(app)/payment/[id]/+page.svelte | 53 |
1 files changed, 13 insertions, 40 deletions
diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte index ea07be14..f7a36717 100644 --- a/src/routes/(app)/payment/[id]/+page.svelte +++ b/src/routes/(app)/payment/[id]/+page.svelte @@ -3,7 +3,6 @@ import { onMount, tick } from "svelte"; import { t, loading } from "$lib/translations"; import { - back, copy, f, s, @@ -34,6 +33,7 @@ rate, type, ref, + path, tip, ourfee, fee, @@ -57,6 +57,7 @@ rate, type, ref, + path, tip, ourfee, fee, @@ -96,12 +97,6 @@ }); </script> -<a href={`/${username}/payments`}> - <button class="ml-5 md:ml-20 mt-5 md:mt-10 hover:opacity-80"> - <Icon icon="arrow-left" style="w-10" /> - </button> -</a> - <div class="container mx-auto max-w-lg px-4 space-y-8 break-all text-2xl"> <h1 class="px-3 md:px-0 text-center text-3xl md:text-4xl font-semibold mb-10"> {$t(amount < 0 ? "payments.sent" : "payments.received")} @@ -225,40 +220,18 @@ </div> {/if} - <div class="flex gap-2"> - {#if user.admin} - <button - class="rounded-full border py-3 px-6 hover:opacity-80 flex w-full md:w-60" - on:click={bump} - > - <div class="mx-auto flex"> - <Icon icon="clock" style="my-auto h-6 mr-2" /> - <div class="my-auto mt-1 text-base">{$t("payments.bump")}</div> - </div> - </button> - {/if} - - {#if user.hasprinter} - <button - class="rounded-full border py-3 px-6 hover:opacity-80 flex w-full md:w-60" - on:click={print} - > - <div class="mx-auto flex"> - <Icon icon="printer" style="my-auto h-6 mr-2" /> - <div class="my-auto mt-1 text-base">{$t("payments.print")}</div> - </div> - </button> - {:else} - <a href={`/payment/${id}/plain`}> + {#if path} + <div> + <span class="text-lg text-secondary">Path</span> + <div class="flex"> + <div>{path}</div> <button - class="rounded-full border py-3 px-6 hover:opacity-80 flex w-full md:w-60" + class="flex font-bold hover:opacity-80 mb-auto my-auto" + on:click={() => copy(path)} > - <div class="mx-auto flex"> - <Icon icon="printer" style="my-auto h-6 mr-2" /> - <div class="my-auto mt-1 text-base">{$t("payments.print")}</div> - </div> + <Icon icon="copy" style="ml-2 w-12 my-auto" /> </button> - </a> - {/if} - </div> + </div> + </div> + {/if} </div> |
