2017-08-31 08:56:49 -07:00
|
|
|
import QRCode from 'qrcode.react';
|
2017-09-24 19:06:28 -07:00
|
|
|
import React, { Component } from 'react';
|
2017-08-31 08:56:49 -07:00
|
|
|
|
2017-09-24 19:06:28 -07:00
|
|
|
interface Props {
|
|
|
|
paymentAddress: string | null;
|
2017-12-11 12:44:53 -05:00
|
|
|
destinationAmount: number;
|
2017-09-24 19:06:28 -07:00
|
|
|
}
|
2017-08-31 08:56:49 -07:00
|
|
|
|
2017-09-24 19:06:28 -07:00
|
|
|
export default class BitcoinQR extends Component<Props, {}> {
|
|
|
|
public render() {
|
2017-12-11 12:44:53 -05:00
|
|
|
const { paymentAddress, destinationAmount } = this.props;
|
2017-08-31 08:56:49 -07:00
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<section className="row block swap-address text-center">
|
|
|
|
<label> Your Address </label>
|
|
|
|
<div className="qr-code">
|
2017-12-11 12:44:53 -05:00
|
|
|
<QRCode value={`bitcoin:${paymentAddress}amount=${destinationAmount}`} />
|
2017-08-31 08:56:49 -07:00
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<p className="text-danger">
|
2017-12-11 12:44:53 -05:00
|
|
|
Orders that take too long will have to be processed manually & and may delay the
|
|
|
|
amount of time it takes to receive your coins.
|
2017-08-31 08:56:49 -07:00
|
|
|
<br />
|
2018-01-10 00:17:52 -05:00
|
|
|
<a href="https://shapeshift.io/#/btcfee" target="_blank" rel="noopener noreferrer">
|
2017-08-31 08:56:49 -07:00
|
|
|
Please use the recommended TX fees seen here.
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|