diff --git a/src/Contact.tsx b/src/Contact.tsx index d4d3966..6b99c07 100644 --- a/src/Contact.tsx +++ b/src/Contact.tsx @@ -27,6 +27,10 @@ class Contact extends React.Component { const contact = this.props.contact; const name = contact.fn; + const revProp = contact.comp.getFirstProperty('rev'); + const lastModified = (revProp !== undefined) ? + 'Modified: ' + moment(revProp.getFirstValue().toJSDate()).format('LLLL') : undefined; + let lists = []; function getAllType( @@ -105,7 +109,7 @@ class Contact extends React.Component { () => 'Anniversary', )); - const skips = ['tel', 'email', 'impp', 'adr', 'bday', 'anniversary', + const skips = ['tel', 'email', 'impp', 'adr', 'bday', 'anniversary', 'rev', 'prodid', 'uid', 'fn', 'n', 'version', 'photo']; const theRest = contact.comp.getAllProperties().filter((prop) => ( skips.indexOf(prop.name) === -1 @@ -141,7 +145,11 @@ class Contact extends React.Component { return (