[251216] fix: FeaturedBrandsPanel TItemCard to DetailPanel
🕐 커밋 시간: 2025. 12. 16. 17:29:43 📊 변경 통계: • 총 파일: 1개 • 추가: +28줄 • 삭제: -19줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/views/FeaturedBrandsPanel/RecommendedShows/RecommendedShowsContents/RecommendedShowsProductList/RecommendedShowsProductList.jsx 🔧 주요 변경 내용: • 소규모 기능 개선 • 코드 정리 및 최적화
This commit is contained in:
@@ -5,8 +5,8 @@ import { useDispatch, useSelector } from "react-redux";
|
||||
import { Job } from "@enact/core/util";
|
||||
import Spotlight from "@enact/spotlight";
|
||||
|
||||
import { updatePanel } from "../../../../../actions/panelActions";
|
||||
import { startVideoPlayer } from "../../../../../actions/playActions";
|
||||
import { pushPanel, updatePanel } from "../../../../../actions/panelActions";
|
||||
// import { startVideoPlayer } from "../../../../../actions/playActions";
|
||||
import TItemCard, {
|
||||
removeDotAndColon,
|
||||
} from "../../../../../components/TItemCard/TItemCard";
|
||||
@@ -113,27 +113,36 @@ export default function RecommendedShowsProductList({
|
||||
);
|
||||
}
|
||||
|
||||
let y =
|
||||
index < 2
|
||||
? 0
|
||||
: index === 2
|
||||
? scaleH(208)
|
||||
: scaleH(index * 248 - 248 - 40);
|
||||
|
||||
// 🆕 DetailPanel로 이동 (ShopByShow 방식)
|
||||
dispatch(
|
||||
startVideoPlayer({
|
||||
modal: false,
|
||||
patnrId,
|
||||
prdtId,
|
||||
showId,
|
||||
shptmBanrTpNm: "VOD",
|
||||
thumbnail: videoThumbnail,
|
||||
targetId: "spotlightId-" + prdtId,
|
||||
y,
|
||||
pushPanel({
|
||||
name: panel_names.DETAIL_PANEL,
|
||||
panelInfo: { patnrId, prdtId },
|
||||
})
|
||||
);
|
||||
|
||||
// 🔴 기존 PlayerPanel 로직 (주석처리)
|
||||
// let y =
|
||||
// index < 2
|
||||
// ? 0
|
||||
// : index === 2
|
||||
// ? scaleH(208)
|
||||
// : scaleH(index * 248 - 248 - 40);
|
||||
//
|
||||
// dispatch(
|
||||
// startVideoPlayer({
|
||||
// modal: false,
|
||||
// patnrId,
|
||||
// prdtId,
|
||||
// showId,
|
||||
// shptmBanrTpNm: "VOD",
|
||||
// thumbnail: videoThumbnail,
|
||||
// targetId: "spotlightId-" + prdtId,
|
||||
// y,
|
||||
// })
|
||||
// );
|
||||
},
|
||||
[catCd, dispatch, patnrId, showId, videoThumbnail]
|
||||
[catCd, dispatch, patnrId]
|
||||
);
|
||||
|
||||
const handleFocus = useCallback(() => {
|
||||
|
||||
Reference in New Issue
Block a user