Jack Clancy 26619e28cc Enforce HTTPS / Prevent Reverse Tabnabbing (#773)
* working version of test custom rule config

* setting no imports to false so tests will pass

* adding anchor blank noopener rule, rule currently off to allow tests to pass

* removing copied code from tslint-microsoft-contrib

* adding tslint-microsoft-contrib to dev deps

* extending tslint for external http rule

* locking tslint-microsoft-contrib version and turning on target blank noopener rule

* final fixes for pull #663

* add noopener noreferrer as needed

* fixing false positives for a tags without href

* really fix linting errors

* fix imports

* remove accidently(?) added LedgerNano duplicate file
2018-01-09 23:17:52 -06:00

33 lines
1.0 KiB
TypeScript

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