import * as _ from 'lodash'; import {colors} from 'material-ui/styles'; import * as React from 'react'; import {Blockchain} from 'ts/blockchain'; import {AddressInput} from 'ts/components/inputs/address_input'; import {Identicon} from 'ts/components/ui/identicon'; import {InputLabel} from 'ts/components/ui/input_label'; import {RequiredLabel} from 'ts/components/ui/required_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); } }