[SHOPTIME-4912] 미국 / Travel 테마 / 호텔 이미지 1개만 노출됨 ( http://hlm.lge.com/issue/browse/SHOPTIME-4912 )

[원인] isOnTop을 내리지않아 ThemeIndicatorArrow component가 랜더링되지 않음

[수정사항] isOnTop props 전달
This commit is contained in:
고동영
2025-01-08 14:15:46 +09:00
parent 86e5dce79b
commit c6575cb611
2 changed files with 2 additions and 10 deletions

View File

@@ -36,6 +36,7 @@ const Container = SpotlightContainerDecorator(
"div" "div"
); );
export default function HotelOption({ export default function HotelOption({
isOnTop,
panelInfo, panelInfo,
launchedFromPlayer, launchedFromPlayer,
selectedIndex, selectedIndex,
@@ -262,6 +263,7 @@ export default function HotelOption({
setSelectedIndex={setSelectedIndex} setSelectedIndex={setSelectedIndex}
thumbnailUrls={hotelInfos[selectedIndex]?.hotelDetailInfo.imgUrls} thumbnailUrls={hotelInfos[selectedIndex]?.hotelDetailInfo.imgUrls}
launchedFromPlayer={launchedFromPlayer} launchedFromPlayer={launchedFromPlayer}
isOnTop={isOnTop}
/> />
<IndicatorOptions <IndicatorOptions

View File

@@ -312,16 +312,6 @@ function ThemeIndicator({
[isOnTop] [isOnTop]
); );
// useEffect(() => {
// if (
// imageLength === (imageSelectedIndex || 1) ||
// (!themeProductInfo?.prdtMediaUrl &&
// imageLength - 1 === imageSelectedIndex)
// ) {
// Spotlight.focus("thumbnailPrevButton");
// }
// }, [canPlayVideo, imageSelectedIndex]);
const renderThumbnail = useCallback(() => { const renderThumbnail = useCallback(() => {
return ( return (
<div className={css.thumbnailContainer}> <div className={css.thumbnailContainer}>