Remove the 'Take Me Home' link in embed mode

This commit is contained in:
David Baker 2022-07-06 18:27:30 +01:00
parent 16d4ffbe3a
commit 655058a7e6
2 changed files with 9 additions and 5 deletions

View file

@ -144,6 +144,7 @@ export function GroupCallView({
toggleLocalVideoMuted={toggleLocalVideoMuted} toggleLocalVideoMuted={toggleLocalVideoMuted}
toggleMicrophoneMuted={toggleMicrophoneMuted} toggleMicrophoneMuted={toggleMicrophoneMuted}
roomId={roomId} roomId={roomId}
isEmbedded={isEmbedded}
/> />
); );
} }

View file

@ -42,6 +42,7 @@ export function LobbyView({
toggleLocalVideoMuted, toggleLocalVideoMuted,
toggleMicrophoneMuted, toggleMicrophoneMuted,
roomId, roomId,
isEmbedded,
}) { }) {
const { stream } = useCallFeed(localCallFeed); const { stream } = useCallFeed(localCallFeed);
const { const {
@ -122,11 +123,13 @@ export function LobbyView({
Copy call link and join later Copy call link and join later
</CopyButton> </CopyButton>
</div> </div>
<Body className={styles.joinRoomFooter}> {!isEmbedded && (
<Link color="primary" to="/"> <Body className={styles.joinRoomFooter}>
Take me Home <Link color="primary" to="/">
</Link> Take me Home
</Body> </Link>
</Body>
)}
</div> </div>
</div> </div>
); );