// @flow import React from 'react'; import translate from 'translations'; import { isValidHex } from 'libs/validators'; import { donationAddressMap } from 'config/data'; export default class DataField extends React.Component { props: { value: string, onChange?: (e: string) => void }; state = { expanded: false }; render() { const { value } = this.props; const { expanded } = this.state; const valid = isValidHex(value || ''); const readOnly = !this.props.onChange; return (
{translate('TRANS_advanced')}
} {expanded &&