2017-09-25 02:06:28 +00:00
|
|
|
import React, { Component } from 'react';
|
|
|
|
import translate from 'translations';
|
2017-12-11 17:44:53 +00:00
|
|
|
import { SwapInput } from 'reducers/swap/types';
|
2017-09-25 02:06:28 +00:00
|
|
|
import './PaymentInfo.scss';
|
|
|
|
|
|
|
|
export interface Props {
|
2017-12-11 17:44:53 +00:00
|
|
|
origin: SwapInput;
|
2017-09-25 02:06:28 +00:00
|
|
|
paymentAddress: string | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default class PaymentInfo extends Component<Props, {}> {
|
|
|
|
public render() {
|
2017-12-11 17:44:53 +00:00
|
|
|
const { origin } = this.props;
|
2017-09-25 02:06:28 +00:00
|
|
|
return (
|
|
|
|
<section className="SwapPayment">
|
|
|
|
<h1>
|
|
|
|
<span>{translate('SWAP_order_CTA')}</span>
|
|
|
|
<strong>
|
|
|
|
{' '}
|
2017-12-11 17:44:53 +00:00
|
|
|
{origin.amount} {origin.id}
|
2017-09-25 02:06:28 +00:00
|
|
|
</strong>
|
|
|
|
<span> {translate('SENDModal_Content_2')}</span>
|
|
|
|
<input
|
|
|
|
className="SwapPayment-address form-control"
|
|
|
|
value={this.props.paymentAddress || undefined}
|
|
|
|
disabled={true}
|
|
|
|
/>
|
|
|
|
</h1>
|
|
|
|
</section>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|