From 929a9020a12e3ded304b5a6cab64ff4c9e85ca21 Mon Sep 17 00:00:00 2001 From: "junghoon86.park" Date: Tue, 16 Dec 2025 14:20:25 +0900 Subject: [PATCH] [youmayalsolike] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - updatePanel이 정상적으로 먹지 않는 문제가있어 pushpanel로 변경처리. --- .../YouMayAlsoLike/YouMayAlsoLike.jsx | 40 ++++++++++++++----- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/YouMayAlsoLike/YouMayAlsoLike.jsx b/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/YouMayAlsoLike/YouMayAlsoLike.jsx index 90eb3116..4d9ea372 100644 --- a/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/YouMayAlsoLike/YouMayAlsoLike.jsx +++ b/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/YouMayAlsoLike/YouMayAlsoLike.jsx @@ -1,21 +1,41 @@ -import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'; +import React, { + useCallback, + useEffect, + useMemo, + useRef, + useState, +} from 'react'; -import { useDispatch, useSelector } from 'react-redux'; +import { + useDispatch, + useSelector, +} from 'react-redux'; import { Job } from '@enact/core/util'; -import SpotlightContainerDecorator from '@enact/spotlight/SpotlightContainerDecorator'; +import SpotlightContainerDecorator + from '@enact/spotlight/SpotlightContainerDecorator'; import Spottable from '@enact/spotlight/Spottable'; import { clearThemeDetail } from '../../../../actions/homeActions'; import { finishModalMediaForce } from '../../../../actions/mediaActions'; -import { popPanel, pushPanel, updatePanel } from '../../../../actions/panelActions'; +import { + popPanel, + pushPanel, + updatePanel, +} from '../../../../actions/panelActions'; import { finishVideoPreview } from '../../../../actions/playActions'; import THeader from '../../../../components/THeader/THeader'; import TItemCardNew from '../../../../components/TItemCard/TItemCard.new'; -import TVerticalPagenator from '../../../../components/TVerticalPagenator/TVerticalPagenator'; -import TVirtualGridList from '../../../../components/TVirtualGridList/TVirtualGridList'; +import TVerticalPagenator + from '../../../../components/TVerticalPagenator/TVerticalPagenator'; +import TVirtualGridList + from '../../../../components/TVirtualGridList/TVirtualGridList'; import useScrollTo from '../../../../hooks/useScrollTo'; -import { LOG_CONTEXT_NAME, LOG_MESSAGE_ID, panel_names } from '../../../../utils/Config'; +import { + LOG_CONTEXT_NAME, + LOG_MESSAGE_ID, + panel_names, +} from '../../../../utils/Config'; import { $L } from '../../../../utils/helperMethods'; import css from './YouMayAlsoLike.module.less'; @@ -158,7 +178,7 @@ export default function YouMayAlsoLike({ // DetailPanel을 언마운트하지 않고 상품 정보만 업데이트 // 이렇게 하면 백그라운드 비디오 제어 상태가 유지됨 dispatch( - updatePanel({ + pushPanel({ name: panel_names.DETAIL_PANEL, panelInfo: { showNm: panelInfo?.showNm, @@ -170,8 +190,8 @@ export default function YouMayAlsoLike({ launchedFromPlayer: launchedFromPlayer, bgVideoInfo: bgVideoInfo, // 백그라운드 비디오 정보 유지 fromPanel: { - fromYouMayLike: true, // YouMayLike에서 선택된 상품임을 표시 -}, // 출처 정보 통합 객체 + fromYouMayLike: true, // YouMayLike에서 선택된 상품임을 표시 + }, // 출처 정보 통합 객체 }, }) );