diff --git a/app/src/components/Containers/Me.js b/app/src/components/Containers/Me.js index e660493d..31008255 100644 --- a/app/src/components/Containers/Me.js +++ b/app/src/components/Containers/Me.js @@ -14,7 +14,6 @@ import { useIntl, FormattedMessage } from 'react-intl'; import VideoView from '../VideoContainers/VideoView'; import Volume from './Volume'; import Fab from '@material-ui/core/Fab'; -import IconButton from '@material-ui/core/IconButton'; import Tooltip from '@material-ui/core/Tooltip'; import MicIcon from '@material-ui/icons/Mic'; import MicOffIcon from '@material-ui/icons/MicOff'; @@ -529,217 +528,107 @@ const Me = (props) => {/* MICROPHONE yy*/} - { smallContainer ? -
- + - { - if (micState === 'off') - roomClient.updateMic({ start: true }); - else if (micState === 'on') - roomClient.muteMic(); - else - roomClient.unmuteMic(); - }} - > - {settings.voiceActivatedUnmute ? - micState === 'on' ? - - - - - - - - - - - - : - : micState === 'on' ? - - : - - } - - {/* */} -
- : -
- - { - if (micState === 'off') - roomClient.updateMic({ start: true }); - else if (micState === 'on') - roomClient.muteMic(); - else - roomClient.unmuteMic(); - }} - > - { settings.voiceActivatedUnmute ? - micState === 'on' ? - - - - - - : - : micState === 'on' ? - - : - - } - -
- } + size={buttonSize} + onClick={() => + { + if (micState === 'off') + roomClient.updateMic({ start: true }); + else if (micState === 'on') + roomClient.muteMic(); + else + roomClient.unmuteMic(); + }} + > + { settings.voiceActivatedUnmute ? + micState === 'on' ? + + + + + + : + : micState === 'on' ? + + : + + } + +
{/* /MICROPHONE */} {/* WEBCAM */} - { smallContainer ? -
- + - { - webcamState === 'on' ? - roomClient.disableWebcam() : - roomClient.updateWebcam({ start: true }); - }} - > - { webcamState === 'on' ? - - : - - } - {/* */} - -
- : -
- - { - webcamState === 'on' ? - roomClient.disableWebcam() : - roomClient.updateWebcam({ start: true }); - }} - > - { webcamState === 'on' ? - - : - - } - -
- } + onClick={() => + { + webcamState === 'on' ? + roomClient.disableWebcam() : + roomClient.updateWebcam({ start: true }); + }} + > + { webcamState === 'on' ? + + : + + } + +
{/* /WEBCAM */} @@ -750,72 +639,35 @@ const Me = (props) => onOpen={screenShareTooltipHandleOpen} title={screenTip} placement='left' > - { smallContainer ? -
- + - { - if (screenState === 'off') - roomClient.updateScreenSharing({ start: true }); - else if (screenState === 'on') - roomClient.disableScreenSharing(); - }} - > - - {/* */} - -
- : -
- - { - if (screenState === 'off') - roomClient.updateScreenSharing({ start: true }); - else if (screenState === 'on') - roomClient.disableScreenSharing(); - }} - > - - -
- } + onClick={() => + { + if (screenState === 'off') + roomClient.updateScreenSharing({ start: true }); + else if (screenState === 'on') + roomClient.disableScreenSharing(); + }} + > + + + } {/* /SCREENSHARING */} @@ -830,42 +682,21 @@ const Me = (props) => })} placement={smallContainer ? 'top' : 'left'} > - { smallContainer ? - - - {/* */} - - : - - - - } + onClick={handleMenuOpen} + > + + }} > - { smallContainer ? -
- - { - roomClient.disableExtraVideo(producer.id); - }} - > - - - {/* */} - -
- : -
- - { - roomClient.disableExtraVideo(producer.id); - }} - > - - -
- } +
+ + { + roomClient.disableExtraVideo(producer.id); + }} + > + + +