diff --git a/apps/desktop/src/lib/components/EvmDashboard.svelte b/apps/desktop/src/lib/components/EvmDashboard.svelte index 8f1374f..fb31315 100644 --- a/apps/desktop/src/lib/components/EvmDashboard.svelte +++ b/apps/desktop/src/lib/components/EvmDashboard.svelte @@ -13,6 +13,8 @@ } from '$lib/components/ui/card/index.js' import ArrowDown from '@lucide/svelte/icons/arrow-down' import ArrowUp from '@lucide/svelte/icons/arrow-up' + import QrCodeIcon from '@lucide/svelte/icons/qr-code' + import * as Dialog from '$lib/components/ui/dialog/index.js' import QRCode from 'qrcode' let { networkId }: { networkId: NetworkId } = $props() @@ -49,9 +51,10 @@ let inputSeed = $state('') let apiKeyInput = $state('') let qrDataUrl = $state('') + let qrDialogOpen = $state(false) $effect(() => { if (w.address) { - QRCode.toDataURL(w.address, { width: 120, margin: 1 }).then( + QRCode.toDataURL(w.address, { width: 256, margin: 1 }).then( (url) => (qrDataUrl = url), ) } @@ -132,19 +135,34 @@ {#if w.address}

Address

-
+

{w.address}

{#if qrDataUrl} -
- QR code - -
+ + + + + +
+
+ QR code + +
+

+ {w.address} +

+
+
+
{/if}