[251112] feat: ShopNowContents-YouMayLikeContents focus up
🕐 커밋 시간: 2025. 11. 12. 20:14:05 📊 변경 통계: • 총 파일: 1개 • 추가: +10줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/ShopNowContents.jsx 🔧 함수 변경 내용: 📄 com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/ShopNowContents.jsx (javascript): 🔄 Modified: SpotlightContainerDecorator()
This commit is contained in:
@@ -71,10 +71,10 @@ export default function ShopNowContents({
|
||||
...item,
|
||||
_type: 'shopnow',
|
||||
}));
|
||||
|
||||
|
||||
// v2 + ShopNow < 3 + YouMayLike 데이터 존재 시 통합
|
||||
// for Test => if (version === 2 && youmaylikeInfos && youmaylikeInfos.length > 0) {
|
||||
if (version === 2 && shopNowInfo.length < 3 && youmaylikeInfos && youmaylikeInfos.length > 0) {
|
||||
// for Test => if (version === 2 && youmaylikeInfos && youmaylikeInfos.length > 0) {
|
||||
if (version === 2 && shopNowInfo.length < 3 && youmaylikeInfos && youmaylikeInfos.length > 0) {
|
||||
items = items.concat(
|
||||
youmaylikeInfos.map((item) => ({
|
||||
...item,
|
||||
@@ -192,6 +192,16 @@ export default function ShopNowContents({
|
||||
}
|
||||
}}
|
||||
spotlightId={`you-may-like-item-${index}`}
|
||||
onSpotlightUp={
|
||||
isYouMayLikeStart
|
||||
? (e) => {
|
||||
// YouMayLike 첫 번째 아이템에서 위로 가면 Close 버튼으로
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
Spotlight.focus('shownow_close_button');
|
||||
}
|
||||
: undefined
|
||||
}
|
||||
type={TYPES.horizontal}
|
||||
version={version}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user