Update eslint to 8.27.0

This commit is contained in:
Fedor Indutny
2022-11-17 16:45:19 -08:00
committed by GitHub
parent c8fb43a846
commit 98ef4c627a
499 changed files with 8995 additions and 8494 deletions

View File

@@ -1,7 +1,7 @@
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import type { FormEventHandler, FunctionComponent } from 'react';
import type { FormEventHandler } from 'react';
import React, { useRef, useState } from 'react';
import type { LocalizerType } from '../../../types/Util';
@@ -44,7 +44,7 @@ type PropsType = {
userAvatarData: Array<AvatarDataType>;
};
export const EditConversationAttributesModal: FunctionComponent<PropsType> = ({
export function EditConversationAttributesModal({
avatarColor,
avatarPath: externalAvatarPath,
conversationId,
@@ -59,7 +59,7 @@ export const EditConversationAttributesModal: FunctionComponent<PropsType> = ({
replaceAvatar,
saveAvatarToDisk,
userAvatarData,
}) => {
}: PropsType): JSX.Element {
const focusDescriptionRef = useRef<undefined | boolean>(
initiallyFocusDescription
);
@@ -242,4 +242,4 @@ export const EditConversationAttributesModal: FunctionComponent<PropsType> = ({
{content}
</Modal>
);
};
}