핫픽스에서 호텔디테일 들어갔을때 포커싱 변경건.

This commit is contained in:
junghoon86.park
2024-07-29 16:29:44 +09:00
parent 08ae246e37
commit 7cf117ba93
3 changed files with 6 additions and 2 deletions

View File

@@ -411,6 +411,7 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
setSelectedIndex={setSelectedIndex}
shopByMobileLogRef={shopByMobileLogRef}
themeType={type}
isLoading={isLoading}
/>
)}
</TBody>

View File

@@ -37,6 +37,7 @@ export default function HotelOption({
selectedIndex,
setSelectedIndex,
shopByMobileLogRef,
isLoading,
}) {
const dispatch = useDispatch();
@@ -220,8 +221,8 @@ export default function HotelOption({
}, [hotelInfos, selectedIndex]);
useEffect(() => {
Spotlight.focus("seemore_Btn");
}, [hotelInfos]);
Spotlight.focus("Indicator-image-" + selectedIndex);
}, [hotelInfos, isLoading]);
return (
<>

View File

@@ -16,6 +16,7 @@ export default function ThemeProduct({
setSelectedIndex,
shopByMobileLogRef,
themeType,
isLoading,
}) {
return (
<div className={css.container}>
@@ -40,6 +41,7 @@ export default function ThemeProduct({
selectedIndex={selectedIndex}
setSelectedIndex={setSelectedIndex}
shopByMobileLogRef={shopByMobileLogRef}
isLoading={isLoading}
/>
)}
</div>