aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/send
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-02-18 20:19:47 -0800
committerAdam Soltys <[email protected]>2023-02-21 16:47:56 -0800
commitc6bcdfc1bf705acd5379ead810b605a4e799d59f (patch)
tree7728061be451b17681016bdcc6aca921ad57df9c /src/routes/(app)/send
parent714d7b840533e35184ca27ae3fe3f5decff9a4eb (diff)
downloadcoinos-ui-c6bcdfc1bf705acd5379ead810b605a4e799d59f.tar.gz
coinos-ui-c6bcdfc1bf705acd5379ead810b605a4e799d59f.zip
numpad cleanup
Diffstat (limited to 'src/routes/(app)/send')
-rw-r--r--src/routes/(app)/send/bitcoin/[address]/[...amount]/+page.svelte3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/routes/(app)/send/bitcoin/[address]/[...amount]/+page.svelte b/src/routes/(app)/send/bitcoin/[address]/[...amount]/+page.svelte
index 6b216cb3..96d5cab7 100644
--- a/src/routes/(app)/send/bitcoin/[address]/[...amount]/+page.svelte
+++ b/src/routes/(app)/send/bitcoin/[address]/[...amount]/+page.svelte
@@ -20,6 +20,8 @@
if (form?.message.includes('pin')) $pin = undefined;
loading = false;
};
+
+ let max = () => (amount = balance);
</script>
<button class="ml-5 md:ml-20 mt-5 md:mt-10 hover:opacity-80" on:click={back}>
@@ -37,6 +39,7 @@
<h1 class="text-3xl md:text-4xl font-semibold mb-2">{$t('payments.sendTo')}</h1>
<p class="text-lg text-secondary">{address}</p>
</div>
+
<Numpad bind:amount {currency} {submit} />
<form method="POST" use:enhance on:submit={toggle}>