[251103] fix: JustForYouTestPanel 노출시 비디오제거
🕐 커밋 시간: 2025. 11. 03. 13:57:14 📊 변경 통계: • 총 파일: 3개 • 추가: +5줄 • 삭제: -53줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/actions/playActions.js ~ com.twin.app.shoptime/src/views/HomePanel/HomeBanner/HomeBanner.jsx ~ com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomBannerType/JustForYouBanner.jsx 🔧 주요 변경 내용: • 핵심 비즈니스 로직 개선 • 타입 시스템 안정성 강화 • 코드 정리 및 최적화 Performance: 코드 최적화로 성능 개선 기대
This commit is contained in:
@@ -508,58 +508,6 @@ export default function HomeBanner({
|
||||
[_handleItemFocus, _handleShelfFocus, bannerDataList]
|
||||
);
|
||||
|
||||
// 1번째 배너(포커스 재생) 및 기타 배너를 위한 렌더링 함수
|
||||
// const renderItemNew = useCallback(
|
||||
// (index, isHorizontal) => {
|
||||
// const data = bannerDataList?.[index] ?? {};
|
||||
|
||||
// // DSP00201 레이아웃의 두 번째 배너는 새로운 RandomUnitNew를 사용
|
||||
// if (selectTemplate === "DSP00201" && index === 1) {
|
||||
// return (
|
||||
// <div className={!isHorizontal ? css.imgBox : undefined}>
|
||||
// <RandomUnitNew
|
||||
// bannerData={data}
|
||||
// isHorizontal={isHorizontal}
|
||||
// key={"banner" + index}
|
||||
// spotlightId={"banner" + index}
|
||||
// handleShelfFocus={_handleShelfFocus}
|
||||
// handleItemFocus={_handleItemFocus}
|
||||
// randomNumber={data.randomIndex}
|
||||
// />
|
||||
// </div>
|
||||
// );
|
||||
// }
|
||||
|
||||
// // 다른 타입의 유닛 렌더링 (예: RollingUnit)
|
||||
// if (data.shptmDspyTpNm === "Rolling") {
|
||||
// return (
|
||||
// <div className={!isHorizontal ? css.imgBox : undefined}>
|
||||
// <RollingUnit
|
||||
// bannerData={data}
|
||||
// isHorizontal={isHorizontal}
|
||||
// key={"banner" + index}
|
||||
// spotlightId={"banner" + index}
|
||||
// handleShelfFocus={_handleShelfFocus}
|
||||
// handleItemFocus={_handleItemFocus}
|
||||
// />
|
||||
// </div>
|
||||
// );
|
||||
// }
|
||||
// // 기본 이미지만 있는 배너 등 다른 케이스 처리
|
||||
// return (
|
||||
// <div
|
||||
// className={!isHorizontal ? css.imgBox : undefined}
|
||||
// key={"banner" + index}
|
||||
// >
|
||||
// <SpottableComponent spotlightId={"banner" + index}>
|
||||
// {/* ... 정적 이미지 렌더링 로직 ... */}
|
||||
// </SpottableComponent>
|
||||
// </div>
|
||||
// );
|
||||
// },
|
||||
// [_handleItemFocus, _handleShelfFocus, bannerDataList, selectTemplate]
|
||||
// );
|
||||
|
||||
// 0번째 배너(영구 재생)를 위한 렌더링 함수
|
||||
const renderItemPersistentVideo = useCallback(
|
||||
(index, isHorizontal) => {
|
||||
|
||||
Reference in New Issue
Block a user