diff options
| author | Adam Soltys <[email protected]> | 2023-12-20 15:06:00 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-20 15:06:00 -0800 |
| commit | b419ccffd45add72259f4abe548ad29b61309488 (patch) | |
| tree | 42b99083b5c70ca14727a16010fd9caa7562e3bc /src/routes/(app)/send | |
| parent | 4cb3b467486456b53c956da95cdc0d17c3e6ff24 (diff) | |
| download | coinos-ui-b419ccffd45add72259f4abe548ad29b61309488.tar.gz coinos-ui-b419ccffd45add72259f4abe548ad29b61309488.zip | |
prettier
Diffstat (limited to 'src/routes/(app)/send')
7 files changed, 34 insertions, 14 deletions
diff --git a/src/routes/(app)/send/[...text]/+page.svelte b/src/routes/(app)/send/[...text]/+page.svelte index b76e067e..8548964c 100644 --- a/src/routes/(app)/send/[...text]/+page.svelte +++ b/src/routes/(app)/send/[...text]/+page.svelte @@ -63,7 +63,8 @@ <a href={`/qr/${encodeURIComponent(text)}`}> <button type="button" - class="flex border rounded-full px-6 py-2 font-bold hover:opacity-80 mr-1"> + class="flex border rounded-full px-6 py-2 font-bold hover:opacity-80 mr-1" + > <Icon icon="qr" style="mr-2 w-6 my-auto invert" /> <div class="my-auto">{$t("user.send.makeQR")}</div> </button> @@ -73,7 +74,8 @@ <a href="/scan"> <button type="button" - class="flex border rounded-full px-6 py-2 font-bold hover:opacity-80 mr-1"> + class="flex border rounded-full px-6 py-2 font-bold hover:opacity-80 mr-1" + > <Icon icon="camera" style="mr-2 w-6 my-auto" /> <div class="my-auto">{$t("user.send.scan")}</div> </button> @@ -82,7 +84,8 @@ <button type="button" class="flex border rounded-full px-6 py-2 font-bold hover:opacity-80 mr-1" - on:click={paste}> + on:click={paste} + > <Icon icon="paste" style="mr-2 w-6 my-auto" /> <div class="my-auto">{$t("user.send.paste")}</div> </button> @@ -92,7 +95,8 @@ type="submit" class="{!text ? 'opacity-50' - : 'opacity-100 hover:opacity-80'} bg-black text-white border rounded-full px-6 py-2 font-bold"> + : 'opacity-100 hover:opacity-80'} bg-black text-white border rounded-full px-6 py-2 font-bold" + > {$t("user.send.next")} </button> </div> diff --git a/src/routes/(app)/send/bitcoin/[address]/+page.svelte b/src/routes/(app)/send/bitcoin/[address]/+page.svelte index 93a5fe5a..2ed99823 100644 --- a/src/routes/(app)/send/bitcoin/[address]/+page.svelte +++ b/src/routes/(app)/send/bitcoin/[address]/+page.svelte @@ -24,7 +24,11 @@ }; </script> -<button type="button" class="ml-5 md:ml-20 mt-5 md:mt-10 hover:opacity-80" on:click={back}> +<button + type="button" + class="ml-5 md:ml-20 mt-5 md:mt-10 hover:opacity-80" + on:click={back} +> <Icon icon="arrow-left" style="w-10" /> </button> diff --git a/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.server.js b/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.server.js index 08741296..9af95188 100644 --- a/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.server.js +++ b/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.server.js @@ -20,7 +20,7 @@ export async function load({ params: { address, amount, feeRate }, cookies }) { return { amount, address, fee, fees, feeRate, ourfee, hex }; } catch (e) { throw redirect(307, `/send/bitcoin/${address}`); - } + } } export const actions = { 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 37ec4d14..263448de 100644 --- a/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.svelte +++ b/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.svelte @@ -42,10 +42,15 @@ }; let setFee = () => goto(`/send/bitcoin/${address}/${amount}/${feeRate}`); - let goBack = () => goto(`/send/bitcoin/${address}`) + let goBack = () => goto(`/send/bitcoin/${address}`); </script> -<button type="button" class="ml-5 md:ml-20 mt-5 md:mt-10 hover:opacity-80" on:click={goBack}> +<button + type="button" + class="ml-5 md:ml-20 mt-5 md:mt-10 hover:opacity-80" + data-sveltekit-preload-data="false" + on:click={goBack} +> <Icon icon="arrow-left" style="w-10" /> </button> diff --git a/src/routes/(app)/send/fund/[name]/[...amount]/+page.svelte b/src/routes/(app)/send/fund/[name]/[...amount]/+page.svelte index 240abc32..b6a4aa0c 100644 --- a/src/routes/(app)/send/fund/[name]/[...amount]/+page.svelte +++ b/src/routes/(app)/send/fund/[name]/[...amount]/+page.svelte @@ -47,7 +47,8 @@ <div class="flex w-full"> <button type="submit" - class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24"> + class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24" + > {#if loading} <Spinner /> {:else} diff --git a/src/routes/(app)/send/invoice/[id]/+page.svelte b/src/routes/(app)/send/invoice/[id]/+page.svelte index 1e26ece1..ae997bce 100644 --- a/src/routes/(app)/send/invoice/[id]/+page.svelte +++ b/src/routes/(app)/send/invoice/[id]/+page.svelte @@ -145,7 +145,8 @@ <button use:focus type="submit" - class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24"> + class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24" + > {#if loading} <Spinner /> {:else} @@ -156,7 +157,8 @@ <button type="button" class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24" - on:click={setAmount}> + on:click={setAmount} + > {$t("payments.next")} </button> {/if} diff --git a/src/routes/(app)/send/lightning/[payreq]/+page.svelte b/src/routes/(app)/send/lightning/[payreq]/+page.svelte index ff64df23..a5b812cb 100644 --- a/src/routes/(app)/send/lightning/[payreq]/+page.svelte +++ b/src/routes/(app)/send/lightning/[payreq]/+page.svelte @@ -74,7 +74,8 @@ <button type="submit" class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24" - disabled={loading}> + disabled={loading} + > {#if loading} <Spinner /> {:else} @@ -91,7 +92,9 @@ <div class="absolute right-[2px] top-[25px] text-gray-600 rounded-r-2xl p-4 h-[54px] my-auto border-l" - >⚡️</div> + > + ⚡️ + </div> </div> {:else} <div class="flex w-full mt-5"> @@ -110,7 +113,8 @@ <button type="submit" class="bg-black text-white rounded-xl h-[48px] flex w-full justify-center items-center font-semibold - opacity-100 hover:opacity-80"> + opacity-100 hover:opacity-80" + > Next </button> </form> |
