import * as _ from 'lodash'; import * as React from 'react'; import {colors} from 'material-ui/styles'; import {Blockchain} from 'ts/blockchain'; import {Identicon} from 'ts/components/ui/identicon'; import {RequiredLabel} from 'ts/components/ui/required_label'; import {AddressInput} from 'ts/components/inputs/address_input'; import {InputLabel} from 'ts/components/ui/input_label'; interface IdenticonAddressInputProps { initialAddress: string; isRequired?: boolean; label: string; updateOrderAddress: (address?: string) => void; } interface IdenticonAddressInputState { address: string; } export class IdenticonAddressInput extends React.Component { constructor(props: IdenticonAddressInputProps) { super(props); this.state = { address: props.initialAddress, }; } public render() { const label = this.props.isRequired ? : this.props.label; return (
); } private updateAddress(address?: string): void { this.setState({ address, }); this.props.updateOrderAddress(address); } }