@@ -206,75 +206,73 @@ export default class RemoteParticipantCard extends React.Component {
206206 render ( ) {
207207 return (
208208 < li className = { this . state . isSpotlighted ? 'participant-item spotlightEnabled' :'participant-item' } key = { utils . getIdentifierText ( this . remoteParticipant . identifier ) } >
209- < div className = "ms-Grid-row" >
210- < div className = "inline-flex align-items-center" >
211- {
212- this . isCheckable &&
213- < div className = "mr-3 inline-flex" >
214- < input type = "checkbox" onChange = { e => this . handleCheckboxChange ( e ) } />
215- </ div >
216- }
217- < div className = "inline-flex" >
218- < Persona className = { this . state . isSpeaking ? `speaking-border-for-initials` : `` }
219- size = { PersonaSize . size40 }
220- text = { this . state . displayName ?
221- this . state . displayName :
222- this . state . participantIds . toString ( )
223- }
224- secondaryText = { this . getSecondaryText ( ) }
225- styles = { { primaryText : { color : '#edebe9' } , secondaryText : { color : '#edebe9' } } } />
209+ < div className = "inline-flex align-items-center" >
210+ {
211+ this . isCheckable &&
212+ < div className = "mr-3 inline-flex" >
213+ < input type = "checkbox" onChange = { e => this . handleCheckboxChange ( e ) } />
226214 </ div >
215+ }
216+ < div className = "inline-flex" >
217+ < Persona className = { this . state . isSpeaking ? `speaking-border-for-initials` : `` }
218+ size = { PersonaSize . size40 }
219+ text = { this . state . displayName ?
220+ this . state . displayName :
221+ this . state . participantIds . toString ( )
222+ }
223+ secondaryText = { this . getSecondaryText ( ) }
224+ styles = { { primaryText : { color : '#edebe9' } , secondaryText : { color : '#edebe9' } } } />
227225 </ div >
228- < div className = "inline-flex align-items-center ml-5" >
229- {
230- this . props . mediaAccess ?. isVideoPermitted === false ? < div className = "in-call-button inline-block"
231- title = { `${ this . state . isMuted ? 'Participant camera disabled' : `` } ` }
232- disabled = { true } >
233- < Icon iconName = { this . state . isMuted ? "VideoOff" : "Video" } />
234- </ div > : undefined
235- }
236- {
237- this . props . mediaAccess ?. isAudioPermitted === false ? < div className = "in-call-button inline-block"
238- title = { `${ this . state . isMuted ? 'Participant mic disabled' : `` } ` }
239- disabled = { true } >
240- < Icon iconName = { this . state . isMuted ? "MicOff" : "Microphone" } />
241- </ div > : < div className = "in-call-button inline-block"
242- title = { `${ this . state . isMuted ? 'Participant is muted' : `` } ` }
243- onClick = { e => this . handleMuteParticipant ( e , this . remoteParticipant ) } >
244- < Icon iconName = { this . state . isMuted ? "MicOff2" : "Microphone" } />
245- </ div >
246- }
247- {
248- ! ( isPhoneNumberIdentifier ( this . remoteParticipant . identifier ) || isUnknownIdentifier ( this . remoteParticipant . identifier ) ) &&
249- < div className = "in-call-button inline-block"
250- title = { this . state . isHandRaised ? "Lower Participant Hand" :`` }
251- variant = "secondary"
252- onClick = { ( ) => this . handleRemoteRaiseHand ( ) } >
253- < Icon iconName = "HandsFree" className = { this . state . isHandRaised ? "callFeatureEnabled" : `` } />
254- </ div >
255- }
256- < div className = "inline-block" >
257- < ParticipantMenuOptions
258- id = { this . remoteParticipant . identifier }
259- appendMenuitems = { this . getMenuItems ( ) }
260- menuOptionsHandler = { this . menuOptionsHandler }
261- menuOptionsState = { { isSpotlighted : this . state . isSpotlighted } } />
262- </ div >
263- < div className = "inline-block" >
264- {
265- this . state . state === "InLobby" ?
266- < div className = "text-right lobby-action" id = "lobbyAction" hidden = { this . state . canManageLobby === false } >
267- < a href = "#" onClick = { e => this . admitParticipant ( e ) } className = "float-right ml-3 green-link" > Admit</ a >
268- < a href = "#" onClick = { e => this . rejectParticipant ( e ) } className = "float-right ml-3 red-link" > Reject</ a >
269- </ div > :
270- < div className = "in-call-button inline-block"
271- title = { `Remove participant` }
272- variant = "secondary"
273- onClick = { ( e ) => this . handleRemoveParticipant ( e , this . remoteParticipant . identifier ) } >
274- < Icon iconName = "UserRemove" />
275- </ div >
276- }
226+ </ div >
227+ < div className = "inline-flex align-items-center ml-3" >
228+ {
229+ this . props . mediaAccess ?. isVideoPermitted === false ? < div className = "in-call-button inline-block"
230+ title = { `${ this . state . isMuted ? 'Participant camera disabled' : `` } ` }
231+ disabled = { true } >
232+ < Icon iconName = { this . state . isMuted ? "VideoOff" : "Video" } />
233+ </ div > : undefined
234+ }
235+ {
236+ this . props . mediaAccess ?. isAudioPermitted === false ? < div className = "in-call-button inline-block"
237+ title = { `${ this . state . isMuted ? 'Participant mic disabled' : `` } ` }
238+ disabled = { true } >
239+ < Icon iconName = { this . state . isMuted ? "MicOff" : "Microphone" } />
240+ </ div > : < div className = "in-call-button inline-block"
241+ title = { `${ this . state . isMuted ? 'Participant is muted' : `` } ` }
242+ onClick = { e => this . handleMuteParticipant ( e , this . remoteParticipant ) } >
243+ < Icon iconName = { this . state . isMuted ? "MicOff2" : "Microphone" } />
277244 </ div >
245+ }
246+ {
247+ ! ( isPhoneNumberIdentifier ( this . remoteParticipant . identifier ) || isUnknownIdentifier ( this . remoteParticipant . identifier ) ) &&
248+ < div className = "in-call-button inline-block"
249+ title = { this . state . isHandRaised ? "Lower Participant Hand" :`` }
250+ variant = "secondary"
251+ onClick = { ( ) => this . handleRemoteRaiseHand ( ) } >
252+ < Icon iconName = "HandsFree" className = { this . state . isHandRaised ? "callFeatureEnabled" : `` } />
253+ </ div >
254+ }
255+ < div className = "inline-block" >
256+ < ParticipantMenuOptions
257+ id = { this . remoteParticipant . identifier }
258+ appendMenuitems = { this . getMenuItems ( ) }
259+ menuOptionsHandler = { this . menuOptionsHandler }
260+ menuOptionsState = { { isSpotlighted : this . state . isSpotlighted } } />
261+ </ div >
262+ < div className = "inline-block" >
263+ {
264+ this . state . state === "InLobby" ?
265+ < div className = "text-right lobby-action" id = "lobbyAction" hidden = { this . state . canManageLobby === false } >
266+ < a href = "#" onClick = { e => this . admitParticipant ( e ) } className = "float-right ml-3 green-link" > Admit</ a >
267+ < a href = "#" onClick = { e => this . rejectParticipant ( e ) } className = "float-right ml-3 red-link" > Reject</ a >
268+ </ div > :
269+ < div className = "in-call-button inline-block"
270+ title = { `Remove participant` }
271+ variant = "secondary"
272+ onClick = { ( e ) => this . handleRemoveParticipant ( e , this . remoteParticipant . identifier ) } >
273+ < Icon iconName = "UserRemove" />
274+ </ div >
275+ }
278276 </ div >
279277 </ div >
280278 </ li >
0 commit comments