[Log] issue fix, change data (productInfo → showProductInfo) in ShowProduct.jsx

This commit is contained in:
younghoon100.park
2024-07-30 17:38:16 +09:00
parent 961f304944
commit c7d4b49d6a

View File

@@ -203,57 +203,59 @@ export default function ShowOption({
return (
<>
{productInfo && (
<>
<Container
className={css.indicatorContainer}
spotlightId="spotlight-IndicatorContainer"
>
<ThemeIndicator
themeProductInfos={productInfo}
themeProductInfo={productInfo[selectedIndex]}
selectedIndex={selectedIndex}
setSelectedIndex={setSelectedIndex}
thumbnailUrls={productInfo[selectedIndex]?.imgUrls600}
soldoutFlag={isSoldout}
launchedFromPlayer={launchedFromPlayer}
isOnTop={isOnTop}
isLoading={isLoading}
isSpotlight
/>
<IndicatorOptions
handleIndicatorOptions={handleIndicatorOptions}
handleMobileSendPopupOpen={handleMobileSendPopupOpen}
isCall
isFullOption={productInfo[selectedIndex]?.pmtSuptYn === "Y"}
isDescription={!productInfo[selectedIndex]?.pmtSuptYn === "Y"}
thumbnailUrl={productInfo[selectedIndex]?.imgUrls600[0]}
productInfo={productInfo[selectedIndex]}
/>
</Container>
<div className={css.optionContainer}>
{isBillingProductVisible && (
<ShowSingleOption
productData={productData}
productInfo={productInfo}
selectedIndex={selectedIndex}
soldoutFlag={isSoldout}
/>
)}
{isUnavailableProductVisible && (
<ShowUnableOption
{productInfo &&
showProductInfo &&
Object.keys(showProductInfo).length > 0 && (
<>
<Container
className={css.indicatorContainer}
spotlightId="spotlight-IndicatorContainer"
>
<ThemeIndicator
themeProductInfos={productInfo}
themeProductInfo={showProductInfo}
selectedIndex={selectedIndex}
setSelectedIndex={setSelectedIndex}
productInfo={showProductInfo}
productData={productData}
selectedCurationId={selectedCurationId}
selectedCurationNm={selectedCurationNm}
thumbnailUrls={showProductInfo?.imgUrls600}
soldoutFlag={isSoldout}
launchedFromPlayer={launchedFromPlayer}
isOnTop={isOnTop}
isLoading={isLoading}
isSpotlight
/>
)}
</div>
</>
)}
<IndicatorOptions
handleIndicatorOptions={handleIndicatorOptions}
handleMobileSendPopupOpen={handleMobileSendPopupOpen}
isCall
isFullOption={showProductInfo?.pmtSuptYn === "Y"}
isDescription={!showProductInfo?.pmtSuptYn === "Y"}
thumbnailUrl={showProductInfo?.imgUrls600[0]}
productInfo={showProductInfo}
/>
</Container>
<div className={css.optionContainer}>
{isBillingProductVisible && (
<ShowSingleOption
productData={productData}
productInfo={productInfo}
selectedIndex={selectedIndex}
soldoutFlag={isSoldout}
/>
)}
{isUnavailableProductVisible && (
<ShowUnableOption
selectedIndex={selectedIndex}
setSelectedIndex={setSelectedIndex}
productInfo={showProductInfo}
productData={productData}
selectedCurationId={selectedCurationId}
selectedCurationNm={selectedCurationNm}
soldoutFlag={isSoldout}
/>
)}
</div>
</>
)}
</>
);
}