From 5d8857c06f29f13f5642cd99700f90209dde8005 Mon Sep 17 00:00:00 2001 From: optrader Date: Wed, 12 Nov 2025 11:53:28 +0900 Subject: [PATCH] =?UTF-8?q?[251112]=20feat:=20views=20-=20ShopNowContents.?= =?UTF-8?q?jsx=20-=20=EA=B8=B0=EB=8A=A5=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit πŸ• 컀밋 μ‹œκ°„: 2025. 11. 12. 11:53:27 πŸ“Š λ³€κ²½ 톡계: β€’ 총 파일: 1개 β€’ μΆ”κ°€: +12쀄 β€’ μ‚­μ œ: -3쀄 πŸ“ μˆ˜μ •λœ 파일: ~ com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/ShopNowContents.jsx --- .../TabContents/ShopNowContents.jsx | 15 ++++++++++++--- 1 file changed, 12 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 6f1b89fd..a05a5145 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 @@ -53,6 +53,15 @@ export default function ShopNowContents({ const [height, setHeight] = useState(); const gridStyle = useMemo(() => ({ height: `${height}px` }), [height]); + useEffect(() => { + console.log('=== [ShopNow] Component Rendered ==='); + console.log('[ShopNow] shopNowInfo:', shopNowInfo); + console.log('[ShopNow] youmaylikeInfos:', youmaylikeInfos); + console.log('[ShopNow] version:', version); + console.log('[ShopNow] tabIndex:', tabIndex); + console.log('====================================='); + }, [shopNowInfo, youmaylikeInfos, version, tabIndex]); + // ShopNow + YouMayLike 톡합 μ•„μ΄ν…œ (v2이고 shopNow < 3일 λ•Œλ§Œ) const combinedItems = useMemo(() => { if (!shopNowInfo) return []; @@ -62,10 +71,10 @@ export default function ShopNowContents({ ...item, _type: 'shopnow', })); - + // v2 + ShopNow < 3 + YouMayLike 데이터 쑴재 μ‹œ 톡합 - // if (version === 2 && shopNowInfo.length < 3 && youmaylikeInfos && youmaylikeInfos.length > 0) { - if (version === 2 && 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,