Skip to content

Commit

Permalink
Remove the 'Take Me Home' link in embed mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dbkr committed Jul 6, 2022
1 parent 16d4ffb commit 655058a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/room/GroupCallView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export function GroupCallView({
toggleLocalVideoMuted={toggleLocalVideoMuted}
toggleMicrophoneMuted={toggleMicrophoneMuted}
roomId={roomId}
isEmbedded={isEmbedded}
/>
);
}
Expand Down
13 changes: 8 additions & 5 deletions src/room/LobbyView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export function LobbyView({
toggleLocalVideoMuted,
toggleMicrophoneMuted,
roomId,
isEmbedded,
}) {
const { stream } = useCallFeed(localCallFeed);
const {
Expand Down Expand Up @@ -122,11 +123,13 @@ export function LobbyView({
Copy call link and join later
</CopyButton>
</div>
<Body className={styles.joinRoomFooter}>
<Link color="primary" to="/">
Take me Home
</Link>
</Body>
{!isEmbedded && (
<Body className={styles.joinRoomFooter}>
<Link color="primary" to="/">
Take me Home
</Link>
</Body>
)}
</div>
</div>
);
Expand Down

0 comments on commit 655058a

Please sign in to comment.