2017-08-31 15:56:49 +00:00
|
|
|
import QRCode from 'qrcode.react';
|
2017-09-25 02:06:28 +00:00
|
|
|
import React, { Component } from 'react';
|
2017-08-31 15:56:49 +00:00
|
|
|
|
2017-09-25 02:06:28 +00:00
|
|
|
interface Props {
|
|
|
|
paymentAddress: string | null;
|
2017-12-11 17:44:53 +00:00
|
|
|
destinationAmount: number;
|
2017-09-25 02:06:28 +00:00
|
|
|
}
|
2017-08-31 15:56:49 +00:00
|
|
|
|
2017-09-25 02:06:28 +00:00
|
|
|
export default class BitcoinQR extends Component<Props, {}> {
|
|
|
|
public render() {
|
2017-12-11 17:44:53 +00:00
|
|
|
const { paymentAddress, destinationAmount } = this.props;
|
2017-08-31 15:56:49 +00:00
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<section className="row block swap-address text-center">
|
|
|
|
<label> Your Address </label>
|
|
|
|
<div className="qr-code">
|
2017-12-11 17:44:53 +00:00
|
|
|
<QRCode value={`bitcoin:${paymentAddress}amount=${destinationAmount}`} />
|
2017-08-31 15:56:49 +00:00
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<p className="text-danger">
|
2017-12-11 17:44:53 +00: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 15:56:49 +00:00
|
|
|
<br />
|
2017-12-11 17:44:53 +00:00
|
|
|
<a href="https://shapeshift.io/#/btcfee" target="_blank" rel="noopener">
|
2017-08-31 15:56:49 +00:00
|
|
|
Please use the recommended TX fees seen here.
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|