Revert "Add QR codes for Monero address and subaddresses"

This reverts commit 95aebfe690.
This commit is contained in:
2026-05-24 19:46:37 +08:00
parent 95aebfe690
commit 932501c32c
2 changed files with 9 additions and 42 deletions
-22
View File
@@ -1,22 +0,0 @@
<script lang="ts">
import QRCode from 'qrcode'
let { text, size = 128 }: { text: string; size?: number } = $props()
let dataUrl = $state('')
$effect(() => {
if (!text) return
QRCode.toDataURL(text, {
width: size,
margin: 1,
color: { dark: '#000', light: '#fff' },
}).then((url) => {
dataUrl = url
})
})
</script>
{#if dataUrl}
<img src={dataUrl} alt="QR code" {width} {height} class="rounded-md" />
{/if}