[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:
2025-12-16 17:29:44 +09:00
parent 92964a5063
commit 8589cde061

View File

@@ -5,8 +5,8 @@ import { useDispatch, useSelector } from "react-redux";
import { Job } from "@enact/core/util"; import { Job } from "@enact/core/util";
import Spotlight from "@enact/spotlight"; import Spotlight from "@enact/spotlight";
import { updatePanel } from "../../../../../actions/panelActions"; import { pushPanel, updatePanel } from "../../../../../actions/panelActions";
import { startVideoPlayer } from "../../../../../actions/playActions"; // import { startVideoPlayer } from "../../../../../actions/playActions";
import TItemCard, { import TItemCard, {
removeDotAndColon, removeDotAndColon,
} from "../../../../../components/TItemCard/TItemCard"; } from "../../../../../components/TItemCard/TItemCard";
@@ -113,27 +113,36 @@ export default function RecommendedShowsProductList({
); );
} }
let y = // 🆕 DetailPanel로 이동 (ShopByShow 방식)
index < 2
? 0
: index === 2
? scaleH(208)
: scaleH(index * 248 - 248 - 40);
dispatch( dispatch(
startVideoPlayer({ pushPanel({
modal: false, name: panel_names.DETAIL_PANEL,
patnrId, panelInfo: { patnrId, prdtId },
prdtId,
showId,
shptmBanrTpNm: "VOD",
thumbnail: videoThumbnail,
targetId: "spotlightId-" + prdtId,
y,
}) })
); );
// 🔴 기존 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(() => { const handleFocus = useCallback(() => {