|
@@ -56,23 +56,19 @@ class OverflowMenu extends Component<Props> {
|
56
|
56
|
* @returns {ReactElement}
|
57
|
57
|
*/
|
58
|
58
|
render() {
|
|
59
|
+ const buttonProps = {
|
|
60
|
+ afterClick: this._onCancel,
|
|
61
|
+ showLabel: true,
|
|
62
|
+ styles: overflowMenuItemStyles
|
|
63
|
+ };
|
|
64
|
+
|
59
|
65
|
return (
|
60
|
66
|
<BottomSheet onCancel = { this._onCancel }>
|
61
|
|
- <AudioRouteButton
|
62
|
|
- showLabel = { true }
|
63
|
|
- styles = { overflowMenuItemStyles } />
|
64
|
|
- <ToggleCameraButton
|
65
|
|
- showLabel = { true }
|
66
|
|
- styles = { overflowMenuItemStyles } />
|
67
|
|
- <AudioOnlyButton
|
68
|
|
- showLabel = { true }
|
69
|
|
- styles = { overflowMenuItemStyles } />
|
70
|
|
- <RoomLockButton
|
71
|
|
- showLabel = { true }
|
72
|
|
- styles = { overflowMenuItemStyles } />
|
73
|
|
- <PictureInPictureButton
|
74
|
|
- showLabel = { true }
|
75
|
|
- styles = { overflowMenuItemStyles } />
|
|
67
|
+ <AudioRouteButton { ...buttonProps } />
|
|
68
|
+ <ToggleCameraButton { ...buttonProps } />
|
|
69
|
+ <AudioOnlyButton { ...buttonProps } />
|
|
70
|
+ <RoomLockButton { ...buttonProps } />
|
|
71
|
+ <PictureInPictureButton { ...buttonProps } />
|
76
|
72
|
</BottomSheet>
|
77
|
73
|
);
|
78
|
74
|
}
|