diff --git a/src/components/ContactPerson.jsx b/src/components/ContactPerson.jsx index 1dd7c29..14dd0a4 100755 --- a/src/components/ContactPerson.jsx +++ b/src/components/ContactPerson.jsx @@ -32,20 +32,8 @@ const ContactPerson = ({ contactPerson }) => ( {contactPerson.name + (contactPerson.role ? ' (' + contactPerson.role + ')' : '')}
-- Tel.: - - {' '} - {contactPerson.mobile} - -
-- Mail: - - {' '} - {contactPerson.email} - -
+Tel.: {contactPerson.mobile}
+Mail: {contactPerson.email}
@@ -54,6 +42,14 @@ const ContactPerson = ({ contactPerson }) => ( ); +function getEmailDomain(email) { + return email.split('@')[1]; +} + +function getEmailName(email) { + return email.split('@')[0]; +} + const ContactPersonMember = styled.div` .head { color: ${props => (props.color ? props.color : '#000')};