Add a URL parameter for hiding the room header

This commit is contained in:
Robin Townsend
2022-09-09 02:04:53 -04:00
parent ca5ce7d468
commit 3186b5f24b
6 changed files with 53 additions and 22 deletions

View File

@@ -47,6 +47,7 @@ interface Props {
localVideoMuted: boolean;
roomIdOrAlias: string;
isEmbedded: boolean;
hideHeader: boolean;
}
export function LobbyView({
client,
@@ -63,6 +64,7 @@ export function LobbyView({
toggleMicrophoneMuted,
roomIdOrAlias,
isEmbedded,
hideHeader,
}: Props) {
const { stream } = useCallFeed(localCallFeed);
const {
@@ -90,14 +92,16 @@ export function LobbyView({
return (
<div className={styles.room}>
<Header>
<LeftNav>
<RoomHeaderInfo roomName={roomName} avatarUrl={avatarUrl} />
</LeftNav>
<RightNav>
<UserMenuContainer />
</RightNav>
</Header>
{!hideHeader && (
<Header>
<LeftNav>
<RoomHeaderInfo roomName={roomName} avatarUrl={avatarUrl} />
</LeftNav>
<RightNav>
<UserMenuContainer />
</RightNav>
</Header>
)}
<div className={styles.joinRoom}>
<div className={styles.joinRoomContent}>
{groupCall.isPtt ? (