Review cleanup

pull/388/head
Beaudan 6 years ago
parent 86e55e5dc6
commit fce4d0ce79

@ -34,9 +34,7 @@ export class ContactName extends React.Component<Props> {
: {}) as React.CSSProperties; : {}) as React.CSSProperties;
const profileElement = shouldShowProfile ? ( const profileElement = shouldShowProfile ? (
<span style={styles} className={`${prefix}__profile-name`}> <span style={styles} className={`${prefix}__profile-name`}>
<b>
<Emojify text={profileName || ''} i18n={i18n} /> <Emojify text={profileName || ''} i18n={i18n} />
</b>
</span> </span>
) : null; ) : null;

@ -308,8 +308,7 @@ export class Message extends React.PureComponent<Props, State> {
<div className="module-message__author"> <div className="module-message__author">
<ContactName <ContactName
phoneNumber={`(...${authorPhoneNumber.substring( phoneNumber={`(...${authorPhoneNumber.substring(
authorPhoneNumber.length - 6, authorPhoneNumber.length - 6
authorPhoneNumber.length
)})`} )})`}
name={authorName} name={authorName}
profileName={authorProfileName} profileName={authorProfileName}

Loading…
Cancel
Save