From 052529098976e960f47337c75387945b5e0e7213 Mon Sep 17 00:00:00 2001 From: "opacity@t-win.kr" Date: Fri, 8 Aug 2025 10:57:41 +0900 Subject: [PATCH] =?UTF-8?q?=ED=86=B5=ED=95=A9=20=EB=A1=9C=EA=B7=B8=20?= =?UTF-8?q?=ED=94=BC=EB=93=9C=EB=B0=B1=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/TabLayout/TabItem.jsx | 3 ++- .../src/components/TabLayout/TabItemSub.jsx | 5 +++-- .../src/views/PlayerPanel/PlayerPanel.jsx | 11 +++++------ 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/com.twin.app.shoptime/src/components/TabLayout/TabItem.jsx b/com.twin.app.shoptime/src/components/TabLayout/TabItem.jsx index d016dd8a..1a188f77 100644 --- a/com.twin.app.shoptime/src/components/TabLayout/TabItem.jsx +++ b/com.twin.app.shoptime/src/components/TabLayout/TabItem.jsx @@ -72,12 +72,13 @@ const TabItemBase = ({ if (spotlightId) { setLastFocusId(spotlightId); } - if(target){ + if (target) { dispatch( sendLogTotalRecommend({ contextName: LOG_CONTEXT_NAME.GNB, messageId: LOG_MESSAGE_ID.GNB, buttonTitle: title, + buttonId: `GNB_CLICK_${title.toUpperCase().replace(" ", "_")}`, }) ); } diff --git a/com.twin.app.shoptime/src/components/TabLayout/TabItemSub.jsx b/com.twin.app.shoptime/src/components/TabLayout/TabItemSub.jsx index 1984b1ba..9effcc9a 100644 --- a/com.twin.app.shoptime/src/components/TabLayout/TabItemSub.jsx +++ b/com.twin.app.shoptime/src/components/TabLayout/TabItemSub.jsx @@ -44,7 +44,7 @@ const TabItemBase = ({ const _onClick = useCallback( (ev) => { const subtitle = title.split("-")[0]; - + const buttonTitle = patncNm ? patncNm : subtitle; clearPressedJob.current.start(() => { if (itemId) { setSelectedSubItemId(itemId); @@ -62,7 +62,8 @@ const TabItemBase = ({ sendLogTotalRecommend({ contextName: LOG_CONTEXT_NAME.GNB, messageId: LOG_MESSAGE_ID.GNB, - buttonTitle: patncNm ? patncNm : subtitle, + buttonTitle: buttonTitle, + buttonId: `GNB_CLICK_${buttonTitle.toUpperCase().replace(" ", "_")}`, }) ); }); diff --git a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx index 64047615..09446de6 100644 --- a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx +++ b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx @@ -1536,7 +1536,6 @@ const PlayerPanel = ({ return null; } - return playListInfo && playListInfo[selectedIndex]?.showUrl; }, [playListInfo, selectedIndex, broadcast]); @@ -2045,8 +2044,8 @@ const PlayerPanel = ({ showType: isShowType, player: isPlayer, category: showDetailInfo[0].showCatNm, - contentId: showDetailInfo[0].showId, - contentTitle: showDetailInfo[0].showNm, + showId: showDetailInfo[0].showId, + showTitle: showDetailInfo[0].showNm, partner: showDetailInfo[0].patncNm, contextName: Config.LOG_CONTEXT_NAME.SHOW, messageId: Config.LOG_MESSAGE_ID.SHOWVIEW, @@ -2058,7 +2057,7 @@ const PlayerPanel = ({ showType: isShowType, player: isPlayer, category: currentItem.catNm, - contentId: currentItem.showId, + showId: currentItem.showId, contentTitle: currentItem.showNm, partner: currentItem.patncNm, contextName: Config.LOG_CONTEXT_NAME.SHOW, @@ -2089,7 +2088,7 @@ const PlayerPanel = ({ dispatch(sendLogTotalRecommend(params)); } } - }, [isVODPaused, createLogParams]); + }, [isVODPaused, createLogParams, showDetailInfo]); // 컴포넌트 언마운트 시에만 로그를 보냄 useEffect(() => { @@ -2099,7 +2098,7 @@ const PlayerPanel = ({ dispatch(sendLogTotalRecommend(params)); } }; - }, [createLogParams, dispatch]); + }, [createLogParams, dispatch, showDetailInfo]); return (