diff options
| author | Adam Soltys <[email protected]> | 2023-11-20 14:38:36 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-11-20 14:48:33 -0800 |
| commit | cb6f474608cd0b91c2cf3258f2b07f930bc6f8b7 (patch) | |
| tree | c75363fa1e4ddba5020194aa4ae8b7811f274bdc | |
| parent | 3a5d21db11a2f128e5f51df9c123b7abc367c778 (diff) | |
| download | coinos-ui-cb6f474608cd0b91c2cf3258f2b07f930bc6f8b7.tar.gz coinos-ui-cb6f474608cd0b91c2cf3258f2b07f930bc6f8b7.zip | |
add qr generator button
| -rw-r--r-- | src/locales/en.json | 1 | ||||
| -rw-r--r-- | src/routes/(app)/send/[...text]/+page.svelte | 12 |
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" |
