Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
ref(audio-popup) Replace InlineDialog with Popover (#12466)
Robert Pintiliib5065306e59b
diff --git a/react/features/settings/components/web/audio/AudioSettingsPopup.js b/react/features/settings/components/web/audio/AudioSettingsPopup.jsindex f0101aedf4..d54b200a0f 100644--- a/react/features/settings/components/web/audio/AudioSettingsPopup.js+++ b/react/features/settings/components/web/audio/AudioSettingsPopup.js@@ -1,6 +1,5 @@// @flow-import InlineDialog from '@atlaskit/inline-dialog';import React from 'react';import { areAudioLevelsEnabled } from '../../../../base/config/functions';@@ -10,6 +9,7 @@ import {setAudioInputDeviceAndUpdateSettings,setAudioOutputDevice as setAudioOutputDeviceAction} from '../../../../base/devices';+import Popover from '../../../../base/popover/components/Popover.web';import { connect } from '../../../../base/redux';import { SMALL_MOBILE_WIDTH } from '../../../../base/responsive-ui/constants';import {@@ -24,17 +24,17 @@ import AudioSettingsContent, { type Props as AudioSettingsContentProps } from '.type Props = AudioSettingsContentProps & {- /**+ /*** Component's children (the audio button).*/children: React$Node,- /**+ /*** Flag controlling the visibility of the popup.*/isOpen: boolean,- /**+ /*** Callback executed when the popup closes.*/onClose: Function,@@ -65,7 +65,7 @@ function AudioSettingsPopup({}: Props) {return (<div className = 'audio-preview'>- <InlineDialog+ <Popovercontent = { <AudioSettingsContentcurrentMicDeviceId = { currentMicDeviceId }currentOutputDeviceId = { currentOutputDeviceId }@@ -74,11 +74,12 @@ function AudioSettingsPopup({outputDevices = { outputDevices }setAudioInputDevice = { setAudioInputDevice }setAudioOutputDevice = { setAudioOutputDevice } /> }- isOpen = { isOpen }- onClose = { onClose }- placement = { popupPlacement }>+ onPopoverClose = { onClose }+ position = { popupPlacement }+ trigger = 'click'+ visible = { isOpen }>{children}- </InlineDialog>+ </Popover></div>);}@@ -93,7 +94,7 @@ function mapStateToProps(state) {const { clientWidth } = state['features/base/responsive-ui'];return {- popupPlacement: clientWidth <= SMALL_MOBILE_WIDTH ? 'auto' : 'top-start',+ popupPlacement: clientWidth <= SMALL_MOBILE_WIDTH ? 'auto' : 'top-end',currentMicDeviceId: getCurrentMicDeviceId(state),currentOutputDeviceId: getCurrentOutputDeviceId(state),isOpen: getAudioSettingsVisibility(state),