Make tel and email linkable in the contact view.

master
Tom Hacohen 2017-12-07 22:37:17 +00:00
parent 588bec69cc
commit 57d65bec0f
1 changed files with 3 additions and 1 deletions

View File

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