diff --git a/app/src/components/Containers/HiddenPeers.js b/app/src/components/Containers/HiddenPeers.js index 7d155d0..4afb943 100644 --- a/app/src/components/Containers/HiddenPeers.js +++ b/app/src/components/Containers/HiddenPeers.js @@ -96,7 +96,7 @@ class HiddenPeers extends React.PureComponent onClick={() => openUsersTab()} >

+{hiddenPeersCount}
participant - {(hiddenPeersCount === 1) ? null : 's'} + {(hiddenPeersCount > 1) && 's'}

); diff --git a/app/src/components/Containers/Me.js b/app/src/components/Containers/Me.js index 8d3e465..2ff2adf 100644 --- a/app/src/components/Containers/Me.js +++ b/app/src/components/Containers/Me.js @@ -332,13 +332,11 @@ const Me = (props) => } }} > - { screenState === 'on' || screenState === 'unsupported' ? + { (screenState === 'on' || screenState === 'unsupported') && - :null } - { screenState === 'off' ? + { screenState === 'off' && - :null } @@ -351,10 +349,10 @@ const Me = (props) => peer={me} displayName={settings.displayName} showPeerInfo - videoTrack={webcamProducer ? webcamProducer.track : null} + videoTrack={webcamProducer && webcamProducer.track} videoVisible={videoVisible} - audioCodec={micProducer ? micProducer.codec : null} - videoCodec={webcamProducer ? webcamProducer.codec : null} + audioCodec={micProducer && micProducer.codec} + videoCodec={webcamProducer && webcamProducer.codec} onChangeDisplayName={(displayName) => { roomClient.changeDisplayName(displayName); @@ -364,9 +362,9 @@ const Me = (props) => - { screenProducer ? + { screenProducer &&
setHover(true)} onMouseOut={() => setHover(false)} onTouchStart={() => @@ -390,7 +388,7 @@ const Me = (props) => >
setHover(true)} onMouseOut={() => setHover(false)} onTouchStart={() => @@ -420,13 +418,12 @@ const Me = (props) => isScreen advancedMode={advancedMode} videoContain - videoTrack={screenProducer ? screenProducer.track : null} + videoTrack={screenProducer && screenProducer.track} videoVisible={screenVisible} - videoCodec={screenProducer ? screenProducer.codec : null} + videoCodec={screenProducer && screenProducer.codec} />
- :null } ); diff --git a/app/src/components/Containers/Peer.js b/app/src/components/Containers/Peer.js index ee7fd2e..4abb38f 100644 --- a/app/src/components/Containers/Peer.js +++ b/app/src/components/Containers/Peer.js @@ -166,8 +166,8 @@ const Peer = (props) => classnames( classes.root, 'webcam', - hover ? 'hover' : null, - activeSpeaker ? 'active-speaker' : null + hover && 'hover', + activeSpeaker && 'active-speaker' ) } onMouseOver={() => setHover(true)} @@ -192,15 +192,14 @@ const Peer = (props) => style={rootStyle} >
- { !videoVisible ? + { !videoVisible &&

this video is paused

- :null }
setHover(true)} onMouseOut={() => setHover(false)} onTouchStart={() => @@ -241,7 +240,7 @@ const Peer = (props) => } - { !smallScreen ? + { !smallScreen && > - :null } peer={peer} displayName={peer.displayName} showPeerInfo - videoTrack={webcamConsumer ? webcamConsumer.track : null} + videoTrack={webcamConsumer && webcamConsumer.track} videoVisible={videoVisible} videoProfile={videoProfile} - audioCodec={micConsumer ? micConsumer.codec : null} - videoCodec={webcamConsumer ? webcamConsumer.codec : null} + audioCodec={micConsumer && micConsumer.codec} + videoCodec={webcamConsumer && webcamConsumer.codec} >
- { screenConsumer ? + { screenConsumer &&
setHover(true)} onMouseOut={() => setHover(false)} onTouchStart={() => @@ -314,17 +312,16 @@ const Peer = (props) => }} style={rootStyle} > - { !screenVisible ? + { !screenVisible &&

this video is paused

- :null } - { screenVisible ? + { screenVisible &&
setHover(true)} onMouseOut={() => setHover(false)} onTouchStart={() => @@ -346,7 +343,7 @@ const Peer = (props) => }, 2000); }} > - { !smallScreen ? + { !smallScreen && > - :null }
- :null }
- :null } ); diff --git a/app/src/components/Containers/SpeakerPeer.js b/app/src/components/Containers/SpeakerPeer.js index 85aeb0b..c31baca 100644 --- a/app/src/components/Containers/SpeakerPeer.js +++ b/app/src/components/Containers/SpeakerPeer.js @@ -117,11 +117,10 @@ const SpeakerPeer = (props) => style={spacingStyle} >
- { !videoVisible ? + { !videoVisible &&

this video is paused

- :null }
- { screenConsumer ? + { screenConsumer &&
- { !screenVisible ? + { !screenVisible &&

this video is paused

- :null } - { screenVisible ? + { screenVisible &&
videoCodec={screenConsumer ? screenConsumer.codec : null} />
- :null }
- :null } ); diff --git a/app/src/components/JoinDialog.js b/app/src/components/JoinDialog.js index ed7f290..1864dbc 100644 --- a/app/src/components/JoinDialog.js +++ b/app/src/components/JoinDialog.js @@ -66,11 +66,27 @@ const JoinDialog = ({ paper : classes.dialogPaper }} > - { window.config.logo ? + { window.config.logo && Logo - :null } - You are about to join a meeting, how would you like to join? + + You are about to join a meeting. + Set your name that others will see, + and chose how you want to join? + + + { + const { value } = event.target; + + changeDisplayName(value); + }} + margin='normal' + /> - - { - const { value } = event.target; - - changeDisplayName(value); - }} - margin='normal' - />
diff --git a/app/src/components/MeetingDrawer/FileSharing/File.js b/app/src/components/MeetingDrawer/FileSharing/File.js index cd3a985..dd89cd2 100644 --- a/app/src/components/MeetingDrawer/FileSharing/File.js +++ b/app/src/components/MeetingDrawer/FileSharing/File.js @@ -67,7 +67,7 @@ class File extends React.PureComponent Avatar
- { file.files ? + { file.files && File finished downloading @@ -92,13 +92,12 @@ class File extends React.PureComponent
))} - :null } { `${displayName} shared a file` } - { !file.active && !file.files ? + { (!file.active && !file.files) &&
{ magnet.decode(magnetUri).dn } @@ -121,20 +120,17 @@ class File extends React.PureComponent }
- :null } - { file.timeout ? + { file.timeout && If this process takes a long time, there might not be anyone seeding this torrent. Try asking someone to reupload the file that you want. - :null } - { file.active ? + { file.active && - :null } diff --git a/app/src/components/MeetingDrawer/ParticipantList/ListMe.js b/app/src/components/MeetingDrawer/ParticipantList/ListMe.js index f506f9c..04dcfc6 100644 --- a/app/src/components/MeetingDrawer/ParticipantList/ListMe.js +++ b/app/src/components/MeetingDrawer/ParticipantList/ListMe.js @@ -91,9 +91,8 @@ const ListMe = (props) =>
- { me.raisedHand ? + { me.raisedHand &&
- :null }
diff --git a/app/src/components/MeetingDrawer/ParticipantList/ListPeer.js b/app/src/components/MeetingDrawer/ParticipantList/ListPeer.js index 82f6840..cd19e9e 100644 --- a/app/src/components/MeetingDrawer/ParticipantList/ListPeer.js +++ b/app/src/components/MeetingDrawer/ParticipantList/ListPeer.js @@ -159,7 +159,7 @@ const ListPeer = (props) => {peer.displayName}
- { peer.raiseHandState ? + { peer.raiseHandState &&
) } /> - :null }
{children}
- { screenConsumer ? + { screenConsumer &&
}
- :null }
); })} - { spotlightsLength < peersLength ? + { spotlightsLength < peersLength && - :null }
); diff --git a/app/src/components/MeetingViews/Filmstrip.js b/app/src/components/MeetingViews/Filmstrip.js index 934db64..fde6515 100644 --- a/app/src/components/MeetingViews/Filmstrip.js +++ b/app/src/components/MeetingViews/Filmstrip.js @@ -228,13 +228,12 @@ class Filmstrip extends React.PureComponent return (
- { peers[activePeerId] ? + { peers[activePeerId] && - :null }
@@ -286,11 +285,10 @@ class Filmstrip extends React.PureComponent
- { spotlightsLength - :null }
); diff --git a/app/src/components/VideoContainers/VideoView.js b/app/src/components/VideoContainers/VideoView.js index 89f4c55..7947219 100644 --- a/app/src/components/VideoContainers/VideoView.js +++ b/app/src/components/VideoContainers/VideoView.js @@ -171,24 +171,17 @@ class VideoView extends React.PureComponent })} >
- { audioCodec ? -

{audioCodec}

- :null - } + { audioCodec &&

{audioCodec}

} - { videoCodec ? -

{videoCodec} {videoProfile}

- :null - } + { videoCodec &&

{videoCodec} {videoProfile}

} - { (videoVisible && videoWidth !== null) ? + { (videoVisible && videoWidth !== null) &&

{videoWidth}x{videoHeight}

- :null }
- { showPeerInfo ? + { showPeerInfo &&
{ isMe ? @@ -212,17 +205,15 @@ class VideoView extends React.PureComponent } - { advancedMode ? + { advancedMode &&
{peer.device.name} {Math.floor(peer.device.version) || null}
- :null }
- :null } diff --git a/app/src/components/VideoWindow/NewWindow.js b/app/src/components/VideoWindow/NewWindow.js index b2255f4..1f58aa1 100644 --- a/app/src/components/VideoWindow/NewWindow.js +++ b/app/src/components/VideoWindow/NewWindow.js @@ -130,7 +130,7 @@ class NewWindow extends React.PureComponent return ReactDOM.createPortal([
- {this.fullscreen.fullscreenEnabled && ( + { this.fullscreen.fullscreenEnabled &&
}
- )} + }
- {this.props.children} + { this.props.children }
], this.container); }