From 539759dd325c853010f45c9e10cc3c0df2fc4c39 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Fri, 8 Dec 2017 18:34:39 +0000 Subject: [PATCH] Add anniversary to contact view. --- src/Contact.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Contact.tsx b/src/Contact.tsx index d1c64cf..d4d3966 100644 --- a/src/Contact.tsx +++ b/src/Contact.tsx @@ -95,7 +95,18 @@ class Contact extends React.Component { () => 'Birthday', )); - const skips = ['tel', 'email', 'impp', 'adr', 'bday', 'prodid', 'uid', 'fn', 'n', 'version', 'photo']; + lists.push(getAllType( + 'anniversary', + { + leftIcon: + }, + undefined, + ((x) => moment(x).format('dddd, LL')), + () => 'Anniversary', + )); + + const skips = ['tel', 'email', 'impp', 'adr', 'bday', 'anniversary', + 'prodid', 'uid', 'fn', 'n', 'version', 'photo']; const theRest = contact.comp.getAllProperties().filter((prop) => ( skips.indexOf(prop.name) === -1 )).map((prop, idx) => {