mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-10-01 17:31:13 +00:00
Remove icon from Cashu QR code
This commit is contained in:
parent
b98b966213
commit
a3e5a2173d
@ -33,6 +33,7 @@
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
|
||||
color: var(--text-primary);
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user