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,13 +1,7 @@
// Copyright 2018-2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import type {
CSSProperties,
FunctionComponent,
MouseEvent,
ReactChild,
ReactNode,
} from 'react';
import type { CSSProperties, MouseEvent, ReactChild, ReactNode } from 'react';
import React, { useEffect, useState } from 'react';
import classNames from 'classnames';
import { noop } from 'lodash';
@ -98,7 +92,7 @@ const getDefaultBlur = (
): AvatarBlur =>
shouldBlurAvatar(...args) ? AvatarBlur.BlurPicture : AvatarBlur.NoBlur;
export const Avatar: FunctionComponent<Props> = ({
export function Avatar({
acceptedMessageRequest,
avatarPath,
badge,
@ -126,7 +120,7 @@ export const Avatar: FunctionComponent<Props> = ({
sharedGroupNames,
unblurredAvatarPath,
}),
}) => {
}: Props): JSX.Element {
const [imageBroken, setImageBroken] = useState(false);
useEffect(() => {
@ -312,7 +306,7 @@ export const Avatar: FunctionComponent<Props> = ({
{badgeNode}
</div>
);
};
}
// This is only exported for testing.
export function _getBadgeSize(avatarSize: number): undefined | number {