From 2d778065c833f4f0313c8d6188ce769f28b99b8f Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 13 May 2020 13:18:16 +0300 Subject: [PATCH] ContactEdit: make addresses multiline. --- src/components/ContactEdit.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/ContactEdit.tsx b/src/components/ContactEdit.tsx index 1b32b21..41d89d6 100644 --- a/src/components/ContactEdit.tsx +++ b/src/components/ContactEdit.tsx @@ -78,6 +78,7 @@ class ValueType { interface ValueTypeComponentProps { type?: string; style?: object; + multiline?: boolean; types: Array<{ type: string }>; name: string; @@ -93,6 +94,7 @@ const ValueTypeComponent = (props: ValueTypeComponentProps) => { ) => props.onChange(props.name, props.value.type, event.target.value)} @@ -455,6 +457,7 @@ class ContactEdit extends React.PureComponent { name="address" placeholder="Address" types={addressTypes} + multiline value={x} onClearRequest={(name: string) => this.removeValueType(name, idx)} onChange={(name: string, type: string, value: string) => (