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;
const profileElement = shouldShowProfile ? (
<span style={styles} className={`${prefix}__profile-name`}>
<b>
<Emojify text={profileName || ''} i18n={i18n} />
</b>
<Emojify text={profileName || ''} i18n={i18n} />
</span>
) : null;

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

Loading…
Cancel
Save