CallScreen interactivity fixes

This commit is contained in:
Fedor Indutny 2021-09-17 17:20:29 -07:00 committed by GitHub
parent 427055ea47
commit 4dcbb7352f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 64 additions and 37 deletions

View file

@ -29,6 +29,8 @@ export type PropsType = {
i18n: LocalizerType;
isVisible?: boolean;
onClick: () => void;
onMouseEnter?: () => void;
onMouseLeave?: () => void;
tooltipDirection?: TooltipPlacement;
};
@ -37,6 +39,8 @@ export const CallingButton = ({
i18n,
isVisible = true,
onClick,
onMouseEnter,
onMouseLeave,
tooltipDirection,
}: PropsType): JSX.Element => {
const uniqueButtonId = useMemo(() => uuid(), []);
@ -128,6 +132,8 @@ export const CallingButton = ({
disabled={disabled}
id={uniqueButtonId}
onClick={onClick}
onMouseEnter={onMouseEnter}
onMouseLeave={onMouseLeave}
type="button"
>
<div />