[251009] feat: views - PlayerPanel.jsx - 기능 개선
🕐 커밋 시간: 2025. 10. 09. 08:50:57 📊 변경 통계: • 총 파일: 1개 • 추가: +2줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx
This commit is contained in:
@@ -203,7 +203,7 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
|
||||
isFullMediaLogReady: false,
|
||||
isDetailMediaReady: false,
|
||||
});
|
||||
const [isVODPaused, setIsVODPaused] = USE_STATE('isVODPaused', false);
|
||||
const [isVODPaused, setIsVODPaused] = USE_STATE('isVODPaused', false);
|
||||
const [tabIndexV2, setTabIndexV2] = USE_STATE('tabIndexV2', 1); // 0: ShopNow, 1: LiveChannel, 2: ShopNowButton
|
||||
|
||||
const panels = USE_SELECTOR('panels', (state) => state.panels.panels);
|
||||
@@ -777,6 +777,7 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
|
||||
|
||||
if (sideContentsVisible && !videoVerticalVisible && panelInfo.shptmBanrTpNm !== 'MEDIA') {
|
||||
setSideContentsVisible(false);
|
||||
setBelowContentsVisible(false);
|
||||
ev?.stopPropagation();
|
||||
// ev?.preventDefault();
|
||||
return;
|
||||
@@ -827,6 +828,7 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
|
||||
nowMenu,
|
||||
videoPlayer,
|
||||
sideContentsVisible,
|
||||
setBelowContentsVisible,
|
||||
videoVerticalVisible,
|
||||
backupInitialIndex,
|
||||
]
|
||||
@@ -1744,8 +1746,8 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
|
||||
!panelInfo?.modal &&
|
||||
isOnTop
|
||||
);
|
||||
}, [sideContentsVisible, playListInfo, panelInfo, isOnTop]);
|
||||
|
||||
}, [sideContentsVisible, playListInfo, panelInfo, isOnTop]);
|
||||
|
||||
const showBelowContents = useMemo(() => {
|
||||
return (
|
||||
sideContentsVisible &&
|
||||
@@ -1754,8 +1756,8 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
|
||||
!panelInfo?.modal &&
|
||||
isOnTop
|
||||
);
|
||||
}, [belowContentsVisible, playListInfo, panelInfo, isOnTop]);
|
||||
|
||||
}, [belowContentsVisible, playListInfo, panelInfo, isOnTop]);
|
||||
|
||||
const qrCurrentItem = useMemo(() => {
|
||||
if (shopNowInfo?.length && panelInfo?.shptmBanrTpNm === 'LIVE') {
|
||||
return shopNowInfo[shopNowInfo.length - 1];
|
||||
@@ -2107,7 +2109,7 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
|
||||
)} */}
|
||||
|
||||
{/* {showBelowContents && ( */}
|
||||
{ isOnTop &&
|
||||
{isOnTop && (
|
||||
<TabContainerV2
|
||||
panelInfo={panelInfo}
|
||||
playListInfo={playListInfo}
|
||||
@@ -2125,7 +2127,7 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
|
||||
onLiveChannelButtonClick={() => setTabIndexV2(2)}
|
||||
onTabClose={(newTabIndex) => setTabIndexV2(newTabIndex)}
|
||||
/>
|
||||
}
|
||||
)}
|
||||
{/* )} */}
|
||||
</Container>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user