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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
499 changed files with 8995 additions and 8494 deletions

View file

@ -1,7 +1,6 @@
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import type { FunctionComponent } from 'react';
import React, { useCallback } from 'react';
import { BaseConversationListItem } from './BaseConversationListItem';
@ -22,7 +21,7 @@ type PropsHousekeeping = {
export type Props = PropsData & PropsHousekeeping;
export const UsernameSearchResultListItem: FunctionComponent<Props> = ({
export function UsernameSearchResultListItem({
i18n,
isFetchingUsername,
lookupConversationWithoutUuid,
@ -30,7 +29,7 @@ export const UsernameSearchResultListItem: FunctionComponent<Props> = ({
showUserNotFoundModal,
setIsFetchingUUID,
showConversation,
}) => {
}: Props): JSX.Element {
const usernameText = i18n('at-username', { username });
const boundOnClick = useCallback(async () => {
if (isFetchingUsername) {
@ -71,4 +70,4 @@ export const UsernameSearchResultListItem: FunctionComponent<Props> = ({
title={usernameText}
/>
);
};
}