Remove icon from Cashu QR code

This commit is contained in:
Bojan Mojsilovic 2024-04-09 16:03:53 +02:00
parent b98b966213
commit a3e5a2173d
3 changed files with 5 additions and 3 deletions

View File

@ -33,6 +33,7 @@
display: flex;
justify-content: flex-start;
align-items: center;
gap: 4px;
color: var(--text-primary);

View File

@ -54,7 +54,7 @@ const CashuQrCodeModal: Component<{
<div class={styles.body}>
<div class={styles.qrCode}>
<QrCode data={props.cashu || ''} type="lightning"/>
<QrCode data={props.cashu || ''} type="cashu"/>
</div>
<div class={styles.description}>{description()}</div>

View File

@ -15,11 +15,12 @@ const QrCode: Component<{ data: string, type?: string }> = (props) => {
const qrType = () => {
const t = props.type && qrTypes.includes(props.type) ?
props.type :
'nostr';
'none';
const qrImages: Record<string, string> = {
const qrImages: Record<string, string | undefined> = {
nostr: qrNostrich,
lightning: qrLightning,
none: undefined,
}
return qrImages[t];