mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-23 04:36:52 +00:00
Merge pull request #12 from QuickMythril/altcoins
add QR code for QORT and generalize code
This commit is contained in:
@@ -4,7 +4,7 @@ import QRCode from 'react-qr-code';
|
||||
import { TextP } from '../App-styles';
|
||||
import { Box } from '@mui/material';
|
||||
|
||||
export const LitecoinQRCode = ({ ltcAddress }) => {
|
||||
export const AddressQRCode = ({ targetAddress }) => {
|
||||
return (
|
||||
<Box sx={{
|
||||
display: 'flex',
|
||||
@@ -22,10 +22,10 @@ export const LitecoinQRCode = ({ ltcAddress }) => {
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Your LTC address
|
||||
Your address
|
||||
</TextP>
|
||||
<QRCode
|
||||
value={ltcAddress} // Your LTC address here
|
||||
value={targetAddress} // Your address here
|
||||
size={180} // Adjust size as needed
|
||||
level="M" // Error correction level (L, M, Q, H)
|
||||
bgColor="#FFFFFF" // Background color (white)
|
Reference in New Issue
Block a user