Make tel and email linkable in the contact view.

master
Tom Hacohen 7 years ago
parent 588bec69cc
commit 57d65bec0f

@ -30,6 +30,7 @@ class ViewContact extends React.Component {
key={idx} key={idx}
leftIcon={<CommunicationCall />} leftIcon={<CommunicationCall />}
rightIcon={<CommunicationChatBubble />} rightIcon={<CommunicationChatBubble />}
href={'tel:' + val}
primaryText={val} primaryText={val}
secondaryText={json[1].type} secondaryText={json[1].type}
/> />
@ -43,6 +44,7 @@ class ViewContact extends React.Component {
<ListItem <ListItem
key={idx} key={idx}
leftIcon={<CommunicationEmail color={indigo500} />} leftIcon={<CommunicationEmail color={indigo500} />}
href={'mailto:' + val}
primaryText={val} primaryText={val}
secondaryText={json[1].type} secondaryText={json[1].type}
/> />
@ -60,7 +62,7 @@ class ViewContact extends React.Component {
<ListItem <ListItem
key={idx} key={idx}
insetChildren={true} insetChildren={true}
primaryText={(window as any).me = val} primaryText={val}
secondaryText={prop.name} secondaryText={prop.name}
/> />
); );

Loading…
Cancel
Save