mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-06 08:45:05 -04:00
feat: cargo project at root
This commit is contained in:
parent
aa0c0623ca
commit
709a2820c4
313 changed files with 1 additions and 740 deletions
22
src-gui/src/renderer/components/modal/swap/BitcoinQrCode.tsx
Normal file
22
src-gui/src/renderer/components/modal/swap/BitcoinQrCode.tsx
Normal file
|
@ -0,0 +1,22 @@
|
|||
import QRCode from 'react-qr-code';
|
||||
import { Box } from '@material-ui/core';
|
||||
|
||||
export default function BitcoinQrCode({ address }: { address: string }) {
|
||||
return (
|
||||
<Box
|
||||
style={{
|
||||
height: '100%',
|
||||
margin: '0 auto',
|
||||
}}
|
||||
>
|
||||
<QRCode
|
||||
value={`bitcoin:${address}`}
|
||||
size={256}
|
||||
style={{ height: 'auto', maxWidth: '100%', width: '100%' }}
|
||||
/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */
|
||||
/* @ts-ignore */
|
||||
viewBox="0 0 256 256"
|
||||
/>
|
||||
</Box>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue