diff --git a/com.twin.app.shoptime/src/actions/brandActions.js b/com.twin.app.shoptime/src/actions/brandActions.js index bd1c7f02..b2202331 100644 --- a/com.twin.app.shoptime/src/actions/brandActions.js +++ b/com.twin.app.shoptime/src/actions/brandActions.js @@ -344,7 +344,10 @@ export const getBrandBestSeller = (props) => (dispatch, getState) => { dispatch(changeAppStatus({ showLoadingPanel: { show: true, type: 'wait' } })); const onSuccess = (response) => { - console.log("[getBrandBestSeller] onSuccess - patnrId:", patnrId, "data:", response.data.data); + console.log("[getBrandBestSeller] onSuccess - patnrId:", patnrId); + console.log("[getBrandBestSeller] Full response:", response.data.data); + console.log("[getBrandBestSeller] brandBestSellerInfo:", response.data.data.brandBestSellerInfo); + console.log("[getBrandBestSeller] brandBestSellerTitle in response:", response.data.data.brandBestSellerTitle); dispatch({ type: types.GET_BRAND_BEST_SELLER, diff --git a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedBestSeller/FeaturedBestSeller.jsx b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedBestSeller/FeaturedBestSeller.jsx index 0eb19682..5136aa46 100644 --- a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedBestSeller/FeaturedBestSeller.jsx +++ b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedBestSeller/FeaturedBestSeller.jsx @@ -19,6 +19,7 @@ const Container = SpotlightContainerDecorator( const FeaturedBestSeller = ({ brandBestSellerInfo, + brandBestSellerTitle, handleItemFocus, order, shelfOrder, @@ -28,6 +29,12 @@ const FeaturedBestSeller = ({ }) => { const [firstChk, setFirstChk] = useState(0); + // brandBestSellerTitle 우선 사용, 없으면 shelfTitle, 없으면 기본값 + const displayTitle = brandBestSellerTitle || shelfTitle || $L(STRING_CONF.BEST_SELLER); + + console.log("[FeaturedBestSeller] brandBestSellerTitle:", brandBestSellerTitle); + console.log("[FeaturedBestSeller] displayTitle:", displayTitle); + const _handleItemFocus = useCallback(() => { if (handleItemFocus) handleItemFocus(spotlightId, shelfOrder); @@ -65,7 +72,7 @@ const FeaturedBestSeller = ({ spotlightId={spotlightId} > diff --git a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedBrandsPanel.jsx b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedBrandsPanel.jsx index fa3744c1..2253b57d 100644 --- a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedBrandsPanel.jsx +++ b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedBrandsPanel.jsx @@ -237,6 +237,9 @@ const FeaturedBrandsPanel = ({ isOnTop, panelInfo, spotlightId }) => { const brandBestSellerInfo = useSelector( (state) => state.brand.brandBestSellerData.data.brandBestSellerInfo ); + const brandBestSellerTitle = useSelector( + (state) => state.brand.brandBestSellerData.data.brandBestSellerTitle + ); const brandRecommendedShowCategoryInfo = useSelector( (state) => state.brand.brandRecommendedShowInfoData.data @@ -513,6 +516,7 @@ const FeaturedBrandsPanel = ({ isOnTop, panelInfo, spotlightId }) => { {console.log("[FeaturedBrandsPanel] Rendering FeaturedBestSeller for patnrId:", selectedPatnrId)} { ); }, [ brandBestSellerInfo, + brandBestSellerTitle, brandCategoryInfo, brandCategoryProductInfo, brandChanInfo,