[PlayerPanel] youmaylike API 호출
This commit is contained in:
@@ -204,7 +204,6 @@ const PlayerPanel = ({
|
||||
const showNowInfos = useSelector((state) => state.main.showNowInfo);
|
||||
const liveShowInfos = useSelector((state) => state.main.liveShowInfos);
|
||||
const vodSubtitleData = useSelector((state) => state.play.subTitleBlobs);
|
||||
|
||||
const broadcast = useSelector((state) => state.common.broadcast);
|
||||
|
||||
const nowMenu = useSelector((state) => state.common.menu.nowMenu);
|
||||
@@ -877,23 +876,23 @@ const PlayerPanel = ({
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
if (playListInfo && playListInfo.length > 0) {
|
||||
if (panelInfo.shptmBanrTpNm === "LIVE") {
|
||||
dispatch(
|
||||
getMainLiveShowNowProduct({
|
||||
patnrId: playListInfo[selectedIndex]?.patnrId,
|
||||
showId: playListInfo[selectedIndex]?.showId,
|
||||
})
|
||||
);
|
||||
}
|
||||
if (
|
||||
playListInfo &&
|
||||
playListInfo.length > 0 &&
|
||||
panelInfo.shptmBanrTpNm === "LIVE"
|
||||
) {
|
||||
dispatch(
|
||||
getMainLiveShowNowProduct({
|
||||
patnrId: playListInfo[selectedIndex]?.patnrId,
|
||||
showId: playListInfo[selectedIndex]?.showId,
|
||||
})
|
||||
);
|
||||
|
||||
// if (panelInfo.shptmBanrTpNm !== "MEDIA") {
|
||||
// dispatch(
|
||||
// getHomeFullVideoInfo({
|
||||
// lgCatCd: playListInfo[selectedIndex]?.catCd,
|
||||
// })
|
||||
// );
|
||||
// }
|
||||
dispatch(
|
||||
getHomeFullVideoInfo({
|
||||
lgCatCd: playListInfo[selectedIndex]?.catCd,
|
||||
})
|
||||
);
|
||||
}
|
||||
}, [playListInfo, selectedIndex, panelInfo.shptmBanrTpNm]);
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ import Spotlight from "@enact/spotlight";
|
||||
import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator";
|
||||
|
||||
import TButtonTab, {
|
||||
COLOR_TYPE,
|
||||
LIST_TYPE,
|
||||
} from "../../../components/TButtonTab/TButtonTab";
|
||||
import { LOG_MENU } from "../../../utils/Config";
|
||||
|
||||
@@ -75,8 +75,9 @@ export default function YouMayLikeContents({
|
||||
/>
|
||||
);
|
||||
},
|
||||
[youmaylikeInfos, height, handleFocus]
|
||||
[youmaylikeInfos]
|
||||
);
|
||||
|
||||
return (
|
||||
<>
|
||||
{youmaylikeInfos && youmaylikeInfos.length > 0 && (
|
||||
|
||||
Reference in New Issue
Block a user