aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/launch
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-26 21:28:04 -0700
committerAdam Soltys <[email protected]>2022-09-26 21:28:04 -0700
commitadf27ffe9f7ab061b72c6cc54ca49213aa5d27fe (patch)
tree8fcbfd0c141894c8d9d5a9ff86bebc9355c58052 /src/routes/launch
parent7881ecd6a4fcbb820ee1607f1e7f6fcc3ce15dfe (diff)
downloadcoinos-ui-adf27ffe9f7ab061b72c6cc54ca49213aa5d27fe.tar.gz
coinos-ui-adf27ffe9f7ab061b72c6cc54ca49213aa5d27fe.zip
invoice updates
Diffstat (limited to 'src/routes/launch')
-rw-r--r--src/routes/launch/+page.svelte5
-rw-r--r--src/routes/launch/purchase/+page.svelte6
2 files changed, 6 insertions, 5 deletions
diff --git a/src/routes/launch/+page.svelte b/src/routes/launch/+page.svelte
index feb8fe85..ee788101 100644
--- a/src/routes/launch/+page.svelte
+++ b/src/routes/launch/+page.svelte
@@ -8,10 +8,7 @@
</script>
<div class="flex mt-20 px-8">
- <img
- src="/images/ticket.webp"
- class="mb-8 md:max-w-xl mx-auto border border-gray-400"
- />
+ <img src="/images/ticket.webp" class="mb-8 md:max-w-xl mx-auto border border-gray-400" />
</div>
<div class="mx-auto flex items-center justify-center px-8">
<div class="flex flex-col w-full bg-white rounded shadow-lg sm:w-3/4 md:w-1/2 lg:w-3/5">
diff --git a/src/routes/launch/purchase/+page.svelte b/src/routes/launch/purchase/+page.svelte
index 4225101e..84f960e3 100644
--- a/src/routes/launch/purchase/+page.svelte
+++ b/src/routes/launch/purchase/+page.svelte
@@ -1,6 +1,8 @@
<script>
import { selectedRate } from '$lib/store';
import { post } from '$lib/utils';
+ import { goto } from '$app/navigation';
+
export let data;
let amount = 35000;
@@ -11,12 +13,14 @@
let invoice;
let get = async (network) => {
- invoice = await post('/invoice', {
+ let { uuid } = await post('/invoice', {
amount,
rate: $selectedRate,
network,
username
});
+
+ goto(`/invoice/${uuid}`);
};
let lightning = () => get('lightning');