Add anniversary to contact view.

master
Tom Hacohen 7 years ago
parent b3420bbc24
commit 539759dd32

@ -95,7 +95,18 @@ class Contact extends React.Component {
() => 'Birthday', () => 'Birthday',
)); ));
const skips = ['tel', 'email', 'impp', 'adr', 'bday', 'prodid', 'uid', 'fn', 'n', 'version', 'photo']; lists.push(getAllType(
'anniversary',
{
leftIcon: <IconDate />
},
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) => ( const theRest = contact.comp.getAllProperties().filter((prop) => (
skips.indexOf(prop.name) === -1 skips.indexOf(prop.name) === -1
)).map((prop, idx) => { )).map((prop, idx) => {

Loading…
Cancel
Save