Move presenter logic to video grid

This commit is contained in:
Robert Long
2021-08-26 12:34:00 -07:00
parent 23763422d8
commit c094e820d1
5 changed files with 61 additions and 54 deletions

View File

@@ -48,7 +48,6 @@ export function Room({ manager }) {
leaveCall,
toggleMuteVideo,
toggleMuteAudio,
togglePresenter,
videoMuted,
audioMuted,
} = useVideoRoom(manager, roomId);
@@ -112,10 +111,7 @@ export function Room({ manager }) {
</div>
)}
{!loading && room && joined && participants.length > 0 && (
<VideoGrid
participants={participants}
onClickNameTag={togglePresenter}
/>
<VideoGrid participants={participants} />
)}
{!loading && room && joined && (
<div className={styles.footer}>