update: make lnurl QRs clickable

This commit is contained in:
MTG2000
2022-08-17 17:15:01 +03:00
parent 3ebd12b029
commit 4f2688f353
2 changed files with 14 additions and 10 deletions

View File

@@ -157,11 +157,13 @@ export default function LoginPage() {
<p className="text-body1 font-bolder text-center">
Login with lightning
</p>
<QRCodeSVG
width={160}
height={160}
value={lnurl}
/>
<a href={`lightning:${lnurl}`}>
<QRCodeSVG
width={160}
height={160}
value={lnurl}
/>
</a>
<p className="text-gray-600 text-body4 text-center">
Scan this code or copy + paste it to your lightning wallet. Or click to login with your browser's wallet.
</p>

View File

@@ -99,11 +99,13 @@ export default function LinkingAccountModal({ onClose, direction, ...props }: Mo
else
content =
<div className='flex flex-col gap-24 items-center mt-32'>
<QRCodeSVG
width={160}
height={160}
value={lnurl}
/>
<a href={`lightning:${lnurl}`}>
<QRCodeSVG
width={160}
height={160}
value={lnurl}
/>
</a>
<p className="text-gray-600 text-body4 text-center">
Scan this QR code with your other lightning wallet & you will be able to use it to login to this account.
<br />