From 82f067657329ad11122560beccb7202824eff11b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B3=A0=EB=8F=99=EC=98=81?= Date: Tue, 9 Jul 2024 18:24:20 +0900 Subject: [PATCH] =?UTF-8?q?[PlayerPanel]=20=EB=9D=BC=EC=9D=B4=EB=B8=8C?= =?UTF-8?q?=EC=B1=84=EB=84=90=EC=97=90=EC=84=9C=20=EB=B9=84=EB=94=94?= =?UTF-8?q?=EC=98=A4=20=EC=9D=B4=EB=8F=99=EC=8B=9C=20lgCatCd=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- com.twin.app.shoptime/src/reducers/mainReducer.js | 1 + .../src/views/PlayerPanel/PlayerPanel.jsx | 1 + .../TabContents/FeaturedShowContents.jsx | 6 ++++-- .../TabContents/LiveChannelContents.jsx | 9 ++++++++- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/com.twin.app.shoptime/src/reducers/mainReducer.js b/com.twin.app.shoptime/src/reducers/mainReducer.js index 6bde72f1..f6a9d9ab 100644 --- a/com.twin.app.shoptime/src/reducers/mainReducer.js +++ b/com.twin.app.shoptime/src/reducers/mainReducer.js @@ -178,6 +178,7 @@ export const mainReducer = (state = initialState, action) => { showNowInfo: null, fullVideoData: null, featuredShowsInfos: null, + youmaylikeInfos: null, }; case types.CLEAR_SUB_CATEGORY: diff --git a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx index 49ad04ca..dc671875 100644 --- a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx +++ b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx @@ -850,6 +850,7 @@ const PlayerPanel = ({ ); } } + if (panelInfo && panelInfo.lgCatCd && panelInfo.shptmBanrTpNm !== "MEDIA") { dispatch( getHomeFullVideoInfo({ diff --git a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/FeaturedShowContents.jsx b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/FeaturedShowContents.jsx index 5a4d71b0..4dbf4ec3 100644 --- a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/FeaturedShowContents.jsx +++ b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/FeaturedShowContents.jsx @@ -33,7 +33,7 @@ export default function FeaturedShowContents({ ); const handleItemClick = useCallback( - (index, patnrId, showId) => () => { + (index, patnrId, showId, lgCatCd) => () => { setSelectedIndex(index + 1); dispatch( updatePanel({ @@ -41,6 +41,7 @@ export default function FeaturedShowContents({ panelInfo: { patnrId, showId, + lgCatCd, shptmBanrTpNm: "VOD", }, }) @@ -59,6 +60,7 @@ export default function FeaturedShowContents({ prdtId, patncNm, showNm, + lgCatCd, } = featuredShowsInfos[index]; const showNameDangerouslySetInnerHTML = () => { @@ -73,7 +75,7 @@ export default function FeaturedShowContents({ imageSource={thumbnailUrl ? thumbnailUrl : defaultImage} productName={showNameDangerouslySetInnerHTML} patnerName={patncNm} - onClick={handleItemClick(index, patnrId, showId)} + onClick={handleItemClick(index, patnrId, showId, lgCatCd)} onFocus={handleFocus()} type={TYPES.featuredHorizontal} spotlightId={`tabChannel-video-${index}`} diff --git a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/LiveChannelContents.jsx b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/LiveChannelContents.jsx index e642af4c..138841c8 100644 --- a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/LiveChannelContents.jsx +++ b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/LiveChannelContents.jsx @@ -41,6 +41,7 @@ export default function LiveChannelContents({ showId, showNm, patncNm, + catCd, strtDt, endDt, timezone, @@ -54,7 +55,13 @@ export default function LiveChannelContents({ dispatch( updatePanel({ name: panel_names.PLAYER_PANEL, - panelInfo: { chanId, patnrId, showId, shptmBanrTpNm: "LIVE" }, + panelInfo: { + chanId, + patnrId, + showId, + shptmBanrTpNm: "LIVE", + lgCatCd: catCd, + }, }) ); };