mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-23 17:38:57 +00:00
9ef1920fe0
* Align footer to bottom * Fix request payment offset padding * Update request payment padding * Add new Input and Dropdown components * Fix offset margins in equiv vals * Update all send tx inputs & dropdowns * Update generate wallet dropdowns * Update inputs & dropdowns for contracts tab * Add inputs & dropdowns for all but swap tab * amend * Fix imports * inputs are invalid when not disabled or readonly * Fix offset refresh button * Add togglable password back to wallet generation * Update swap inputs, textareas, and dropdowns * Update any outstanding inputs * Make UnitDropDown searchable * unitdropdown searchanble if options > 10 * Fix css issues * Reset before setting currentTo
34 lines
890 B
TypeScript
34 lines
890 B
TypeScript
import React, { PureComponent } from 'react';
|
|
import translate from 'translations';
|
|
import { SwapInput } from 'reducers/swap/types';
|
|
import './PaymentInfo.scss';
|
|
import { Input } from 'components/ui';
|
|
|
|
export interface Props {
|
|
origin: SwapInput;
|
|
paymentAddress: string | null;
|
|
}
|
|
|
|
export default class PaymentInfo extends PureComponent<Props, {}> {
|
|
public render() {
|
|
const { origin } = this.props;
|
|
return (
|
|
<section className="SwapPayment">
|
|
<h1>
|
|
<span>{translate('SWAP_order_CTA')}</span>
|
|
<strong>
|
|
{' '}
|
|
{origin.amount} {origin.label}
|
|
</strong>
|
|
<span> {translate('SENDModal_Content_2')}</span>
|
|
<Input
|
|
className="SwapPayment-address"
|
|
value={this.props.paymentAddress || undefined}
|
|
disabled={true}
|
|
/>
|
|
</h1>
|
|
</section>
|
|
);
|
|
}
|
|
}
|