[PlayerPanel] 라이브채널에서 비디오 이동시 lgCatCd update
This commit is contained in:
@@ -178,6 +178,7 @@ export const mainReducer = (state = initialState, action) => {
|
||||
showNowInfo: null,
|
||||
fullVideoData: null,
|
||||
featuredShowsInfos: null,
|
||||
youmaylikeInfos: null,
|
||||
};
|
||||
|
||||
case types.CLEAR_SUB_CATEGORY:
|
||||
|
||||
@@ -850,6 +850,7 @@ const PlayerPanel = ({
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (panelInfo && panelInfo.lgCatCd && panelInfo.shptmBanrTpNm !== "MEDIA") {
|
||||
dispatch(
|
||||
getHomeFullVideoInfo({
|
||||
|
||||
@@ -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}`}
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user