[PlayerPanel] 라이브채널에서 비디오 이동시 lgCatCd update

This commit is contained in:
고동영
2024-07-09 18:24:20 +09:00
parent 85c8a52e84
commit 82f0676573
4 changed files with 14 additions and 3 deletions

View File

@@ -178,6 +178,7 @@ export const mainReducer = (state = initialState, action) => {
showNowInfo: null,
fullVideoData: null,
featuredShowsInfos: null,
youmaylikeInfos: null,
};
case types.CLEAR_SUB_CATEGORY:

View File

@@ -850,6 +850,7 @@ const PlayerPanel = ({
);
}
}
if (panelInfo && panelInfo.lgCatCd && panelInfo.shptmBanrTpNm !== "MEDIA") {
dispatch(
getHomeFullVideoInfo({

View File

@@ -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}`}

View File

@@ -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,
},
})
);
};