|
|
@ -78,6 +78,7 @@ class ValueType {
|
|
|
|
interface ValueTypeComponentProps {
|
|
|
|
interface ValueTypeComponentProps {
|
|
|
|
type?: string;
|
|
|
|
type?: string;
|
|
|
|
style?: object;
|
|
|
|
style?: object;
|
|
|
|
|
|
|
|
multiline?: boolean;
|
|
|
|
|
|
|
|
|
|
|
|
types: Array<{ type: string }>;
|
|
|
|
types: Array<{ type: string }>;
|
|
|
|
name: string;
|
|
|
|
name: string;
|
|
|
@ -93,6 +94,7 @@ const ValueTypeComponent = (props: ValueTypeComponentProps) => {
|
|
|
|
<TextField
|
|
|
|
<TextField
|
|
|
|
type={props.type}
|
|
|
|
type={props.type}
|
|
|
|
placeholder={props.placeholder}
|
|
|
|
placeholder={props.placeholder}
|
|
|
|
|
|
|
|
multiline={props.multiline}
|
|
|
|
style={props.style}
|
|
|
|
style={props.style}
|
|
|
|
value={props.value.value}
|
|
|
|
value={props.value.value}
|
|
|
|
onChange={(event: React.ChangeEvent<any>) => props.onChange(props.name, props.value.type, event.target.value)}
|
|
|
|
onChange={(event: React.ChangeEvent<any>) => props.onChange(props.name, props.value.type, event.target.value)}
|
|
|
@ -455,6 +457,7 @@ class ContactEdit extends React.PureComponent<PropsType> {
|
|
|
|
name="address"
|
|
|
|
name="address"
|
|
|
|
placeholder="Address"
|
|
|
|
placeholder="Address"
|
|
|
|
types={addressTypes}
|
|
|
|
types={addressTypes}
|
|
|
|
|
|
|
|
multiline
|
|
|
|
value={x}
|
|
|
|
value={x}
|
|
|
|
onClearRequest={(name: string) => this.removeValueType(name, idx)}
|
|
|
|
onClearRequest={(name: string) => this.removeValueType(name, idx)}
|
|
|
|
onChange={(name: string, type: string, value: string) => (
|
|
|
|
onChange={(name: string, type: string, value: string) => (
|
|
|
|