// Copyright 2015-2018 Parity Technologies (UK) Ltd. // This file is part of Parity. // // SPDX-License-Identifier: BSD-3-Clause import React, { Component } from 'react'; import { Card, Header } from 'fether-ui'; import { inject, observer } from 'mobx-react'; import { Link, Redirect } from 'react-router-dom'; import QrSigner from '@parity/qr-signer'; import { withProps } from 'recompose'; import RequireHealth from '../../RequireHealthOverlay'; import withAccount from '../../utils/withAccount.js'; import withTokens from '../../utils/withTokens'; @inject('sendStore') @withAccount @withTokens @withProps(({ match: { params: { tokenAddress } }, tokens }) => ({ token: tokens[tokenAddress] })) @observer class TxQrCode extends Component { handleNextStep = () => { const { history, token, account: { address: accountAddress } } = this.props; history.push(`/send/${token.address}/from/${accountAddress}/scansignedtx`); }; render () { const { account: { address }, history, sendStore: { tx, getRlp }, token } = this.props; if (!Object.keys(tx).length || !token) { return ; } return (
Close } title={token &&

Send {token.name}

} />

Please scan the QR code of the transaction on Parity Signer


{}} account={address} rlp={getRlp()} />
); } } export default TxQrCode;