How to use the cozy-doctypes.Contact.propType function in cozy-doctypes

To help you get started, we’ve selected a few cozy-doctypes examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cozy / cozy-ui / react / ContactsList / Contacts / ContactName.jsx View on Github external
const {
    givenName: firstname = contact.fullname,
    familyName: lastname = ''
  } = name

  return (
    <div>
      <span>{firstname}</span>
      &nbsp;
      <span>{lastname}</span>
    </div>
  )
}

ContactName.propTypes = {
  contact: Contact.propType.isRequired
}

export default ContactName
github cozy / cozy-ui / react / ContactsList / ContactRow.jsx View on Github external
},
        className
      )}
      onClick={() =&gt; onClick(contact)}
      {...rest}
    &gt;
      
      {!isMobile &amp;&amp; }
      {!isMobile &amp;&amp; }
      {!isMobile &amp;&amp; }
    
  )
}

ContactRow.propTypes = {
  contact: Contact.propType.isRequired
}

export default withBreakpoints()(ContactRow)
github cozy / cozy-ui / react / ContactsList / Contacts / ContactIdentity.jsx View on Github external
return (
    <div>
      
      
      {isMyself &amp;&amp; }
    </div>
  )
}

ContactIdentity.propTypes = {
  contact: Contact.propType.isRequired
}

export default ContactIdentity