Update eslint to 8.27.0
This commit is contained in:
parent
c8fb43a846
commit
98ef4c627a
499 changed files with 8995 additions and 8494 deletions
|
@ -1,27 +1,32 @@
|
|||
// Copyright 2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { FunctionComponent } from 'react';
|
||||
import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
|
||||
type PropsType = {
|
||||
isVisible: boolean;
|
||||
onClick: () => unknown;
|
||||
children?: JSX.Element | string;
|
||||
};
|
||||
|
||||
export const DEFAULT_LIFETIME = 5000;
|
||||
|
||||
export const CallingToast: FunctionComponent<PropsType> = ({
|
||||
export function CallingToast({
|
||||
isVisible,
|
||||
onClick,
|
||||
children,
|
||||
}) => (
|
||||
<button
|
||||
className={classNames('CallingToast', !isVisible && 'CallingToast--hidden')}
|
||||
type="button"
|
||||
onClick={onClick}
|
||||
>
|
||||
{children}
|
||||
</button>
|
||||
);
|
||||
}: PropsType): JSX.Element {
|
||||
return (
|
||||
<button
|
||||
className={classNames(
|
||||
'CallingToast',
|
||||
!isVisible && 'CallingToast--hidden'
|
||||
)}
|
||||
type="button"
|
||||
onClick={onClick}
|
||||
>
|
||||
{children}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue