From b972ac462bff6144be8e82739d947e9dfeb5840d Mon Sep 17 00:00:00 2001 From: Ravi theja Date: Tue, 29 Aug 2023 15:55:32 +0530 Subject: [PATCH] fix: remove template appdata usage --- .../src/Prebuilt/components/TileMenu/TileMenu.jsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/roomkit-react/src/Prebuilt/components/TileMenu/TileMenu.jsx b/packages/roomkit-react/src/Prebuilt/components/TileMenu/TileMenu.jsx index 936ac499d3..eeb4c556e8 100644 --- a/packages/roomkit-react/src/Prebuilt/components/TileMenu/TileMenu.jsx +++ b/packages/roomkit-react/src/Prebuilt/components/TileMenu/TileMenu.jsx @@ -4,7 +4,6 @@ import { selectLocalPeerID, selectPeerByID, selectPermissions, - selectTemplateAppData, selectTrackByID, selectVideoTrackByPeerID, useHMSStore, @@ -34,10 +33,7 @@ const TileMenu = ({ audioTrackID, videoTrackID, peerID, isScreenshare = false, c const showSpotlight = changeRole; const isPrimaryVideoTrack = useHMSStore(selectVideoTrackByPeerID(peerID))?.id === videoTrackID; - const uiMode = useHMSStore(selectTemplateAppData).uiMode; - const isInset = uiMode === 'inset'; - - const showPinAction = (audioTrackID || (videoTrackID && isPrimaryVideoTrack)) && !isInset; + const showPinAction = audioTrackID || (videoTrackID && isPrimaryVideoTrack); const track = useHMSStore(selectTrackByID(videoTrackID)); const hideSimulcastLayers = !track?.layerDefinitions?.length || track.degraded || !track.enabled; @@ -50,7 +46,7 @@ const TileMenu = ({ audioTrackID, videoTrackID, peerID, isScreenshare = false, c return null; } - if (isInset && isLocal) { + if (isLocal) { return null; } const openNameChangeModal = () => setShowNameChangeModal(true);