aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/locales/en.json1
-rw-r--r--src/routes/(app)/send/[...text]/+page.svelte12
2 files changed, 13 insertions, 0 deletions
diff --git a/src/locales/en.json b/src/locales/en.json
index c68b5b91..2e7b2079 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -189,6 +189,7 @@
"showQR": "Show QR"
},
"send": {
+ "makeQR": "QR",
"contacts": "Contacts",
"scan": "Scan",
"paste": "Paste",
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"