Migrate conversations to ESLint
This commit is contained in:
parent
b4f0f3c685
commit
372aa44e49
90 changed files with 1261 additions and 1165 deletions
|
@ -19,7 +19,7 @@ export function renderAvatar({
|
|||
i18n: LocalizerType;
|
||||
size: 28 | 52 | 80;
|
||||
direction?: 'outgoing' | 'incoming';
|
||||
}) {
|
||||
}): JSX.Element {
|
||||
const { avatar } = contact;
|
||||
|
||||
const avatarPath = avatar && avatar.avatar && avatar.avatar.path;
|
||||
|
@ -60,7 +60,7 @@ export function renderName({
|
|||
contact: ContactType;
|
||||
isIncoming: boolean;
|
||||
module: string;
|
||||
}) {
|
||||
}): JSX.Element {
|
||||
return (
|
||||
<div
|
||||
className={classNames(
|
||||
|
@ -81,7 +81,7 @@ export function renderContactShorthand({
|
|||
contact: ContactType;
|
||||
isIncoming: boolean;
|
||||
module: string;
|
||||
}) {
|
||||
}): JSX.Element {
|
||||
const { number: phoneNumber, email } = contact;
|
||||
const firstNumber = phoneNumber && phoneNumber[0] && phoneNumber[0].value;
|
||||
const firstEmail = email && email[0] && email[0].value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue