diff options
| author | secondl1ght <[email protected]> | 2022-09-29 23:19:14 -0600 |
|---|---|---|
| committer | secondl1ght <[email protected]> | 2022-09-29 23:19:14 -0600 |
| commit | 6bc16274bd37759c060d18e39f8caee373b09dd2 (patch) | |
| tree | 79d76144ebb5056402db3c032ab7ceb0fd13906d /src/routes/scan | |
| parent | d9a450148a859de42a86c758b0be4a63e6d7fbac (diff) | |
| download | coinos-ui-6bc16274bd37759c060d18e39f8caee373b09dd2.tar.gz coinos-ui-6bc16274bd37759c060d18e39f8caee373b09dd2.zip | |
format
Diffstat (limited to 'src/routes/scan')
| -rw-r--r-- | src/routes/scan/+page.svelte | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/src/routes/scan/+page.svelte b/src/routes/scan/+page.svelte index 9b1072e0..0fba1c4a 100644 --- a/src/routes/scan/+page.svelte +++ b/src/routes/scan/+page.svelte @@ -1,25 +1,21 @@ <script> - import { Icon } from "$comp"; + import { Icon } from '$comp'; import QrScanner from 'qr-scanner'; import { onMount } from 'svelte'; - import { back } from "$lib/utils"; - import { goto } from "$app/navigation"; + import { back } from '$lib/utils'; + import { goto } from '$app/navigation'; let scanner, vid; onMount(() => { - scanner = new QrScanner(vid, (text) => goto(`/send/${text}`)); - scanner.start(); + scanner = new QrScanner(vid, (text) => goto(`/send/${text}`)); + scanner.start(); }); - </script> - <button - class="ml-5 md:ml-20 mt-5 md:mt-10 hover:opacity-80" - on:click={back} - > - <Icon icon="arrow-left" style="w-10" /> - </button> +<button class="ml-5 md:ml-20 mt-5 md:mt-10 hover:opacity-80" on:click={back}> + <Icon icon="arrow-left" style="w-10" /> +</button> - <div class="flex w-full"> -<video bind:this={vid} class="w-full max-w-[600px] mx-auto" /> +<div class="flex w-full"> + <video bind:this={vid} class="w-full max-w-[600px] mx-auto" /> </div> |
