diff --git a/app/src/components/MeetingDrawer/ParticipantList/ListPeer.js b/app/src/components/MeetingDrawer/ParticipantList/ListPeer.js index cd19e9e..9f74e65 100644 --- a/app/src/components/MeetingDrawer/ParticipantList/ListPeer.js +++ b/app/src/components/MeetingDrawer/ParticipantList/ListPeer.js @@ -6,6 +6,8 @@ import PropTypes from 'prop-types'; import classnames from 'classnames'; import * as appPropTypes from '../../appPropTypes'; import { withRoomContext } from '../../../RoomContext'; +import { useIntl } from 'react-intl'; +import IconButton from '@material-ui/core/IconButton'; import MicIcon from '@material-ui/icons/Mic'; import MicOffIcon from '@material-ui/icons/MicOff'; import ScreenIcon from '@material-ui/icons/ScreenShare'; @@ -128,6 +130,8 @@ const styles = (theme) => const ListPeer = (props) => { + const intl = useIntl(); + const { roomClient, peer, @@ -174,47 +178,49 @@ const ListPeer = (props) => {children}
{ screenConsumer && -
- { - e.stopPropagation(); - screenVisible ? - roomClient.modifyPeerConsumer(peer.id, 'screen', true) : - roomClient.modifyPeerConsumer(peer.id, 'screen', false); - }} + { + e.stopPropagation(); + screenVisible ? + roomClient.modifyPeerConsumer(peer.id, 'screen', true) : + roomClient.modifyPeerConsumer(peer.id, 'screen', false); + }} > { screenVisible ? : } -
+ } -
- { - e.stopPropagation(); - micEnabled ? - roomClient.modifyPeerConsumer(peer.id, 'mic', true) : - roomClient.modifyPeerConsumer(peer.id, 'mic', false); - }} + { + e.stopPropagation(); + micEnabled ? + roomClient.modifyPeerConsumer(peer.id, 'mic', true) : + roomClient.modifyPeerConsumer(peer.id, 'mic', false); + }} > { micEnabled ? : } -
+
); @@ -232,15 +238,15 @@ ListPeer.propTypes = classes : PropTypes.object.isRequired }; -const makeMapStateToProps = (initialState, props) => +const makeMapStateToProps = (initialState, { id }) => { const getPeerConsumers = makePeerConsumerSelector(); const mapStateToProps = (state) => { return { - peer : state.peers[props.id], - ...getPeerConsumers(state, props) + peer : state.peers[id], + ...getPeerConsumers(state, id) }; };