Move presenter logic to video grid
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user