Update eslint to 8.27.0
This commit is contained in:
parent
c8fb43a846
commit
98ef4c627a
499 changed files with 8995 additions and 8494 deletions
|
@ -85,11 +85,11 @@ type ParagraphPropsType = {
|
|||
children: ReactNode;
|
||||
};
|
||||
|
||||
GroupDialog.Paragraph = ({
|
||||
children,
|
||||
}: Readonly<ParagraphPropsType>): JSX.Element => (
|
||||
<p className="module-GroupDialog__paragraph">{children}</p>
|
||||
);
|
||||
function Paragraph({ children }: Readonly<ParagraphPropsType>): JSX.Element {
|
||||
return <p className="module-GroupDialog__paragraph">{children}</p>;
|
||||
}
|
||||
|
||||
GroupDialog.Paragraph = Paragraph;
|
||||
|
||||
type ContactsPropsType = {
|
||||
contacts: Array<ConversationType>;
|
||||
|
@ -98,38 +98,41 @@ type ContactsPropsType = {
|
|||
theme: ThemeType;
|
||||
};
|
||||
|
||||
GroupDialog.Contacts = ({
|
||||
function Contacts({
|
||||
contacts,
|
||||
getPreferredBadge,
|
||||
i18n,
|
||||
theme,
|
||||
}: Readonly<ContactsPropsType>) => (
|
||||
<ul className="module-GroupDialog__contacts">
|
||||
{contacts.map(contact => (
|
||||
<li key={contact.id} className="module-GroupDialog__contacts__contact">
|
||||
<Avatar
|
||||
acceptedMessageRequest={contact.acceptedMessageRequest}
|
||||
avatarPath={contact.avatarPath}
|
||||
badge={getPreferredBadge(contact.badges)}
|
||||
color={contact.color}
|
||||
conversationType={contact.type}
|
||||
isMe={contact.isMe}
|
||||
noteToSelf={contact.isMe}
|
||||
theme={theme}
|
||||
title={contact.title}
|
||||
unblurredAvatarPath={contact.unblurredAvatarPath}
|
||||
sharedGroupNames={contact.sharedGroupNames}
|
||||
size={AvatarSize.TWENTY_EIGHT}
|
||||
i18n={i18n}
|
||||
/>
|
||||
<ContactName
|
||||
module="module-GroupDialog__contacts__contact__name"
|
||||
title={contact.title}
|
||||
/>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
);
|
||||
}: Readonly<ContactsPropsType>): JSX.Element {
|
||||
return (
|
||||
<ul className="module-GroupDialog__contacts">
|
||||
{contacts.map(contact => (
|
||||
<li key={contact.id} className="module-GroupDialog__contacts__contact">
|
||||
<Avatar
|
||||
acceptedMessageRequest={contact.acceptedMessageRequest}
|
||||
avatarPath={contact.avatarPath}
|
||||
badge={getPreferredBadge(contact.badges)}
|
||||
color={contact.color}
|
||||
conversationType={contact.type}
|
||||
isMe={contact.isMe}
|
||||
noteToSelf={contact.isMe}
|
||||
theme={theme}
|
||||
title={contact.title}
|
||||
unblurredAvatarPath={contact.unblurredAvatarPath}
|
||||
sharedGroupNames={contact.sharedGroupNames}
|
||||
size={AvatarSize.TWENTY_EIGHT}
|
||||
i18n={i18n}
|
||||
/>
|
||||
<ContactName
|
||||
module="module-GroupDialog__contacts__contact__name"
|
||||
title={contact.title}
|
||||
/>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
);
|
||||
}
|
||||
GroupDialog.Contacts = Contacts;
|
||||
|
||||
function focusRef(el: HTMLElement | null) {
|
||||
if (el) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue