feat(toolbox/conference): review remarks
This commit is contained in:
parent
7e2f3f7d68
commit
058c82a704
|
@ -7,6 +7,7 @@ import { BottomSheet, hideSheet } from '../../../base/dialog';
|
||||||
import { bottomSheetStyles } from '../../../base/dialog/components/native/styles';
|
import { bottomSheetStyles } from '../../../base/dialog/components/native/styles';
|
||||||
import { connect } from '../../../base/redux';
|
import { connect } from '../../../base/redux';
|
||||||
import { SharedDocumentButton } from '../../../etherpad';
|
import { SharedDocumentButton } from '../../../etherpad';
|
||||||
|
import { ParticipantsPaneButton } from '../../../participants-pane/components/native';
|
||||||
import { ReactionMenu } from '../../../reactions/components';
|
import { ReactionMenu } from '../../../reactions/components';
|
||||||
import { isReactionsEnabled } from '../../../reactions/functions.any';
|
import { isReactionsEnabled } from '../../../reactions/functions.any';
|
||||||
import { LiveStreamButton, RecordButton } from '../../../recording';
|
import { LiveStreamButton, RecordButton } from '../../../recording';
|
||||||
|
@ -25,7 +26,6 @@ import LinkToSalesforceButton from './LinkToSalesforceButton';
|
||||||
import OpenCarmodeButton from './OpenCarmodeButton';
|
import OpenCarmodeButton from './OpenCarmodeButton';
|
||||||
import RaiseHandButton from './RaiseHandButton';
|
import RaiseHandButton from './RaiseHandButton';
|
||||||
import ScreenSharingButton from './ScreenSharingButton';
|
import ScreenSharingButton from './ScreenSharingButton';
|
||||||
import ToggleCameraButton from './ToggleCameraButton';
|
|
||||||
import ToggleSelfViewButton from './ToggleSelfViewButton';
|
import ToggleSelfViewButton from './ToggleSelfViewButton';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -114,14 +114,31 @@ class OverflowMenu extends PureComponent<Props, State> {
|
||||||
styles: bottomSheetStyles.buttons
|
styles: bottomSheetStyles.buttons
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const topButtonProps = {
|
||||||
|
afterClick: this._onCancel,
|
||||||
|
showLabel: true,
|
||||||
|
styles: {
|
||||||
|
...bottomSheetStyles.buttons,
|
||||||
|
style: {
|
||||||
|
...bottomSheetStyles.buttons.style,
|
||||||
|
borderTopLeftRadius: 16,
|
||||||
|
borderTopRightRadius: 16
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const firstMenuButtonProps
|
||||||
|
= toolbarButtons.has('participantspane') ? topButtonProps : buttonProps;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BottomSheet
|
<BottomSheet
|
||||||
renderFooter = { _reactionsEnabled && !toolbarButtons.has('raisehand')
|
renderFooter = { _reactionsEnabled && !toolbarButtons.has('raisehand')
|
||||||
? this._renderReactionMenu
|
? this._renderReactionMenu
|
||||||
: null }>
|
: null }>
|
||||||
{_selfViewHidden && <ToggleSelfViewButton { ...buttonProps } />}
|
{!toolbarButtons.has('participantspane') && <ParticipantsPaneButton { ...topButtonProps } />}
|
||||||
<OpenCarmodeButton { ...buttonProps } />
|
<OpenCarmodeButton { ...firstMenuButtonProps } />
|
||||||
<AudioOnlyButton { ...buttonProps } />
|
<AudioOnlyButton { ...buttonProps } />
|
||||||
|
{_selfViewHidden && <ToggleSelfViewButton { ...buttonProps } />}
|
||||||
{!_reactionsEnabled && !toolbarButtons.has('raisehand') && <RaiseHandButton { ...buttonProps } />}
|
{!_reactionsEnabled && !toolbarButtons.has('raisehand') && <RaiseHandButton { ...buttonProps } />}
|
||||||
<Divider style = { styles.divider } />
|
<Divider style = { styles.divider } />
|
||||||
<SecurityDialogButton { ...buttonProps } />
|
<SecurityDialogButton { ...buttonProps } />
|
||||||
|
@ -132,7 +149,6 @@ class OverflowMenu extends PureComponent<Props, State> {
|
||||||
<SharedVideoButton { ...buttonProps } />
|
<SharedVideoButton { ...buttonProps } />
|
||||||
<ScreenSharingButton { ...buttonProps } />
|
<ScreenSharingButton { ...buttonProps } />
|
||||||
<SpeakerStatsButton { ...buttonProps } />
|
<SpeakerStatsButton { ...buttonProps } />
|
||||||
{!toolbarButtons.has('togglecamera') && <ToggleCameraButton { ...buttonProps } />}
|
|
||||||
{!toolbarButtons.has('tileview') && <TileViewButton { ...buttonProps } />}
|
{!toolbarButtons.has('tileview') && <TileViewButton { ...buttonProps } />}
|
||||||
<Divider style = { styles.divider } />
|
<Divider style = { styles.divider } />
|
||||||
<ClosedCaptionButton { ...buttonProps } />
|
<ClosedCaptionButton { ...buttonProps } />
|
||||||
|
|
|
@ -102,8 +102,11 @@ function Toolbox(props: Props) {
|
||||||
styles = { buttonStylesBorderless }
|
styles = { buttonStylesBorderless }
|
||||||
toggledStyles = { backgroundToggledStyle } />)}
|
toggledStyles = { backgroundToggledStyle } />)}
|
||||||
{additionalButtons.has('tileview') && <TileViewButton styles = { buttonStylesBorderless } />}
|
{additionalButtons.has('tileview') && <TileViewButton styles = { buttonStylesBorderless } />}
|
||||||
<ParticipantsPaneButton
|
{
|
||||||
styles = { buttonStylesBorderless } />
|
additionalButtons.has('participantspane')
|
||||||
|
&& <ParticipantsPaneButton
|
||||||
|
styles = { buttonStylesBorderless } />
|
||||||
|
}
|
||||||
<OverflowMenuButton
|
<OverflowMenuButton
|
||||||
styles = { buttonStylesBorderless }
|
styles = { buttonStylesBorderless }
|
||||||
toggledStyles = { toggledButtonStyles } />
|
toggledStyles = { toggledButtonStyles } />
|
||||||
|
|
Loading…
Reference in New Issue