[PlayerPanel] youmaylike detailPage onClick

This commit is contained in:
고동영
2024-06-14 15:33:39 +09:00
parent fab846b483
commit 4f666f286d
3 changed files with 11 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ export const getSystemSettings = (
{ onSuccess, onFailure, onComplete }
) => {
if (
typeof window === "object" && // 브라우저인지
typeof window === "object" &&
window.PalmSystem &&
process.env.REACT_APP_MODE !== "DEBUG"
) {

View File

@@ -138,6 +138,7 @@ export default function TabContainer({
<YouMayLikeContents
shopNowInfo={shopNowInfo}
handleItemFocus={_handleItemFocus}
playListInfo={playListInfo && playListInfo[selectedIndex]}
/>
)}
</Container>

View File

@@ -9,7 +9,11 @@ import { LOG_MENU, panel_names } from "../../../../utils/Config";
import { $L } from "../../../../utils/helperMethods";
import css from "./YouMayLikeContents.module.less";
export default function YouMayLikeContents({ shopNowInfo, handleItemFocus }) {
export default function YouMayLikeContents({
shopNowInfo,
handleItemFocus,
playListInfo,
}) {
const dispatch = useDispatch();
const [height, setHeight] = useState(236);
const youmaylikeInfos = useSelector((state) => state.main.youmaylikeInfos);
@@ -45,8 +49,12 @@ export default function YouMayLikeContents({ shopNowInfo, handleItemFocus }) {
pushPanel({
name: panel_names.DETAIL_PANEL,
panelInfo: {
showNm: playListInfo?.showNm,
showId: playListInfo?.showId,
liveFlag: playListInfo?.liveFlag,
patnrId,
prdtId,
launchedFromPlayer: true,
},
})
);