Use backup labels if custom contact type labels are missing

This commit is contained in:
Scott Nonnenberg
2018-05-08 16:52:51 -07:00
parent fffcba0fec
commit eafa038ba4
3 changed files with 92 additions and 14 deletions

View File

@@ -62,6 +62,45 @@ const contact = {
/>;
```
### With missing custom labels
```jsx
const contact = {
avatar: {
avatar: {
path: util.gifObjectUrl,
},
},
name: {
displayName: 'Someone Somewhere',
},
number: [
{
value: '(202) 555-0000',
type: 4,
},
],
email: [
{
value: 'someone2@somewhere.com',
type: 4,
},
],
address: [
{
street: '10 Pike Place, Seattle WA',
type: 3,
},
],
};
<ContactDetail
contact={contact}
hasSignalAccount={true}
i18n={util.i18n}
onSendMessage={() => console.log('onSendMessage')}
/>;
```
### With default avatar
```jsx