diff options
| author | Adam Soltys <[email protected]> | 2023-12-20 14:57:22 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-20 14:57:22 -0800 |
| commit | 5f6a4c32c214f6054795894c83a5aefcb0904d05 (patch) | |
| tree | 7cb42f2e9bf4996b155c0571647e7254bc65fc24 /src | |
| parent | 79926592531523e9ed00e3fbd35c76fa1b832af0 (diff) | |
| download | coinos-ui-5f6a4c32c214f6054795894c83a5aefcb0904d05.tar.gz coinos-ui-5f6a4c32c214f6054795894c83a5aefcb0904d05.zip | |
fix back button
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.svelte | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.svelte b/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.svelte index 2d8877d8..58de1000 100644 --- a/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.svelte +++ b/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.svelte @@ -5,7 +5,7 @@ import Icon from "$comp/Icon.svelte"; import Spinner from "$comp/Spinner.svelte"; import { page } from "$app/stores"; - import { fiat as toFiat, f, back, s, sat, closest } from "$lib/utils"; + import { fiat as toFiat, f, s, sat, closest } from "$lib/utils"; import { pin } from "$lib/store"; import { goto, invalidate } from "$app/navigation"; import { rate } from "$lib/store"; @@ -42,9 +42,10 @@ }; let setFee = () => goto(`/send/bitcoin/${address}/${amount}/${feeRate}`); + let goBack = () => goto(`/send/bitcoin/${address}/${amount}`) </script> -<button class="ml-5 md:ml-20 mt-5 md:mt-10 hover:opacity-80" on:click={back}> +<button class="ml-5 md:ml-20 mt-5 md:mt-10 hover:opacity-80" on:click={goBack}> <Icon icon="arrow-left" style="w-10" /> </button> @@ -93,18 +94,18 @@ </div> {#if ourfee} - <div class="text-center"> - <h2 class="text-secondary text-lg">{$t("payments.ourFee")}</h2> + <div class="text-center"> + <h2 class="text-secondary text-lg">{$t("payments.ourFee")}</h2> - <div class="flex flex-wrap gap-4 justify-center"> - <div class="my-auto"> - <h2 class="text-xl"> - {f(toFiat(ourfee, $rate), currency)} - </h2> - <h3 class="text-secondary">⚡️{s(ourfee)}</h3> + <div class="flex flex-wrap gap-4 justify-center"> + <div class="my-auto"> + <h2 class="text-xl"> + {f(toFiat(ourfee, $rate), currency)} + </h2> + <h3 class="text-secondary">⚡️{s(ourfee)}</h3> + </div> </div> </div> - </div> {/if} <form method="POST" use:enhance on:submit={() => (submitting = true)}> |
