[PlayerPanel] youmaylike API 호출

This commit is contained in:
고동영
2024-07-23 17:39:14 +09:00
parent 91f7e21f49
commit 3d9b150bc8
3 changed files with 18 additions and 19 deletions

View File

@@ -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]);

View File

@@ -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";

View File

@@ -75,8 +75,9 @@ export default function YouMayLikeContents({
/>
);
},
[youmaylikeInfos, height, handleFocus]
[youmaylikeInfos]
);
return (
<>
{youmaylikeInfos && youmaylikeInfos.length > 0 && (