2018-01-29 19:13:46 +00:00
|
|
|
import React, { PureComponent } from 'react';
|
2018-03-20 20:08:57 +00:00
|
|
|
import QRCode from 'qrcode.react';
|
|
|
|
import './BitcoinQR.scss';
|
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
|
|
|
|
2018-01-29 19:13:46 +00:00
|
|
|
export default class BitcoinQR extends PureComponent<Props, {}> {
|
2017-09-25 02:06:28 +00:00
|
|
|
public render() {
|
2017-12-11 17:44:53 +00:00
|
|
|
const { paymentAddress, destinationAmount } = this.props;
|
2017-08-31 15:56:49 +00:00
|
|
|
return (
|
2018-03-20 20:08:57 +00:00
|
|
|
<div className="BitcoinQR">
|
2017-08-31 15:56:49 +00:00
|
|
|
<section className="row block swap-address text-center">
|
|
|
|
<label> Your Address </label>
|
2018-03-20 20:08:57 +00:00
|
|
|
<div className="BitcoinQR-qr">
|
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 />
|
2018-01-10 05:17:52 +00:00
|
|
|
<a href="https://shapeshift.io/#/btcfee" target="_blank" rel="noopener noreferrer">
|
2017-08-31 15:56:49 +00:00
|
|
|
Please use the recommended TX fees seen here.
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|