[Log] issue fix, change data (productInfo → showProductInfo) in ShowProduct.jsx
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user