From a0177b6c6eebbe4f3b4e28b5ee1789ccd31e1dbf Mon Sep 17 00:00:00 2001 From: optrader Date: Wed, 12 Nov 2025 20:14:06 +0900 Subject: [PATCH] [251112] feat: ShopNowContents-YouMayLikeContents focus up MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit πŸ• 컀밋 μ‹œκ°„: 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() --- .../TabContents/ShopNowContents.jsx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/ShopNowContents.jsx b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/ShopNowContents.jsx index a05a5145..312bd4fc 100644 --- a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/ShopNowContents.jsx +++ b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/ShopNowContents.jsx @@ -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} />