aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-11-20 14:38:36 -0800
committerAdam Soltys <[email protected]>2023-11-20 14:48:33 -0800
commitcb6f474608cd0b91c2cf3258f2b07f930bc6f8b7 (patch)
treec75363fa1e4ddba5020194aa4ae8b7811f274bdc /src/routes/(app)
parent3a5d21db11a2f128e5f51df9c123b7abc367c778 (diff)
downloadcoinos-ui-cb6f474608cd0b91c2cf3258f2b07f930bc6f8b7.tar.gz
coinos-ui-cb6f474608cd0b91c2cf3258f2b07f930bc6f8b7.zip
add qr generator button
Diffstat (limited to 'src/routes/(app)')
-rw-r--r--src/routes/(app)/send/[...text]/+page.svelte12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/routes/(app)/send/[...text]/+page.svelte b/src/routes/(app)/send/[...text]/+page.svelte
index b2c9616c..74afd846 100644
--- a/src/routes/(app)/send/[...text]/+page.svelte
+++ b/src/routes/(app)/send/[...text]/+page.svelte
@@ -56,6 +56,18 @@
</div>
<div class="flex justify-end">
+ {#if text?.length}
+ <a href={`/qr/${encodeURIComponent(text)}`}>
+ <button
+ type="button"
+ 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>
+ </a>
+ {/if}
+
<a href="/scan">
<button
type="button"