mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-10-02 01:40:53 +00:00
Remove icon from Cashu QR code
This commit is contained in:
parent
b98b966213
commit
a3e5a2173d
@ -33,6 +33,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ const CashuQrCodeModal: Component<{
|
|||||||
|
|
||||||
<div class={styles.body}>
|
<div class={styles.body}>
|
||||||
<div class={styles.qrCode}>
|
<div class={styles.qrCode}>
|
||||||
<QrCode data={props.cashu || ''} type="lightning"/>
|
<QrCode data={props.cashu || ''} type="cashu"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class={styles.description}>{description()}</div>
|
<div class={styles.description}>{description()}</div>
|
||||||
|
@ -15,11 +15,12 @@ const QrCode: Component<{ data: string, type?: string }> = (props) => {
|
|||||||
const qrType = () => {
|
const qrType = () => {
|
||||||
const t = props.type && qrTypes.includes(props.type) ?
|
const t = props.type && qrTypes.includes(props.type) ?
|
||||||
props.type :
|
props.type :
|
||||||
'nostr';
|
'none';
|
||||||
|
|
||||||
const qrImages: Record<string, string> = {
|
const qrImages: Record<string, string | undefined> = {
|
||||||
nostr: qrNostrich,
|
nostr: qrNostrich,
|
||||||
lightning: qrLightning,
|
lightning: qrLightning,
|
||||||
|
none: undefined,
|
||||||
}
|
}
|
||||||
|
|
||||||
return qrImages[t];
|
return qrImages[t];
|
||||||
|
Loading…
Reference in New Issue
Block a user