You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-wallet/src/js/components/Receive.js

31 lines
786 B

/* @flow */
'use strict';
import React, { Component } from 'react';
import AddressTab from './AddressTab';
import { QRCode } from 'react-qr-svg';
const History = (props): any => {
const { addresses } = props.addresses;
const currentAddress = addresses[ parseInt(props.match.params.address) ];
if (!currentAddress) return null;
return (
<section className="receive">
<AddressTab match={ props.match } />
<h3>{ currentAddress.address }</h3>
<QRCode
bgColor="#FFFFFF"
fgColor="#000000"
level="Q"
style={{ width: 256 }}
value={ currentAddress.address }
/>
</section>
);
}
export default History;