aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/send/user
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-03-11 16:36:40 -0800
committerAdam Soltys <[email protected]>2023-03-11 16:36:40 -0800
commitffb2a1c2ccfeb8d6002644e2fcefe60a7fd20d05 (patch)
tree49d1531fe55eec5e5a9faca5bad608944e4e2cb5 /src/routes/(app)/send/user
parent9b5f8947c05ee59225ffa100e4ebd83d2a243b57 (diff)
downloadcoinos-ui-ffb2a1c2ccfeb8d6002644e2fcefe60a7fd20d05.tar.gz
coinos-ui-ffb2a1c2ccfeb8d6002644e2fcefe60a7fd20d05.zip
prompt for tip
Diffstat (limited to 'src/routes/(app)/send/user')
-rw-r--r--src/routes/(app)/send/user/[username]/[...amount]/+page.svelte16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte b/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte
index 1bb88277..af6a6368 100644
--- a/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte
+++ b/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte
@@ -30,11 +30,15 @@
({ hash } = await post(`/${subject.username}/invoice`, {
invoice: {
amount,
+ hash: 'internal',
rate: rates[subject.currency],
+ prompt: subject.prompt,
type: 'internal'
},
user: subject
}));
+
+ goto(`/${subject.username}/invoice/${hash}`);
};
let loading;
@@ -56,17 +60,7 @@
{/if}
<div class="container px-4 mt-20 max-w-xl mx-auto space-y-8">
- {#if amount}
- <h1 class="text-center text-3xl md:text-4xl font-bold mb-6">Sending</h1>
- <div class="text-center mb-8">
- <h2 class="text-2xl md:text-3xl font-semibold">
- {f(amountFiat, currency)}
- </h2>
- <h3 class="text-secondary md:text-lg mb-6 mt-1">{sat(amount)}</h3>
- </div>
- {:else}
- <Numpad bind:amount={a} bind:amountFiat={af} {currency} bind:fiat />
- {/if}
+ <Numpad bind:amount={a} bind:amountFiat={af} {currency} bind:fiat />
<form method="POST" use:enhance on:submit={submit}>
<input name="amount" value={amount} type="hidden" />