mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-09 01:33:37 +00:00
* 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
26 lines
819 B
TypeScript
26 lines
819 B
TypeScript
import { DataFieldFactory } from './DataFieldFactory';
|
|
import React from 'react';
|
|
import translate from 'translations';
|
|
import { donationAddressMap } from 'config';
|
|
import { Input } from 'components/ui';
|
|
|
|
export const DataField: React.SFC<{}> = () => (
|
|
<DataFieldFactory
|
|
withProps={({ data: { raw }, dataExists, onChange, readOnly }) => (
|
|
<div className="input-group-wrapper">
|
|
<label className="input-group">
|
|
<div className="input-group-header">{translate('OFFLINE_Step2_Label_6')}</div>
|
|
<Input
|
|
className={dataExists ? 'is-valid' : 'is-invalid'}
|
|
type="text"
|
|
placeholder={donationAddressMap.ETH}
|
|
value={raw}
|
|
readOnly={!!readOnly}
|
|
onChange={onChange}
|
|
/>
|
|
</label>
|
|
</div>
|
|
)}
|
|
/>
|
|
);
|