[지라 이슈 없음] format (for compare)
This commit is contained in:
@@ -9,11 +9,11 @@ import { setShowPopup } from "../../../actions/commonActions";
|
||||
import TButton from "../../../components/TButton/TButton";
|
||||
import TQRCode from "../../../components/TQRCode/TQRCode";
|
||||
import usePriceInfo from "../../../hooks/usePriceInfo";
|
||||
import useWhyDidYouUpdate from "../../../hooks/useWhyDidYouUpdate";
|
||||
import * as Config from "../../../utils/Config";
|
||||
import { $L } from "../../../utils/helperMethods";
|
||||
import FavoriteBtn from "../components/FavoriteBtn";
|
||||
import css from "./UnableOption.module.less";
|
||||
import useWhyDidYouUpdate from "../../../hooks/useWhyDidYouUpdate";
|
||||
|
||||
export default function UnableOption({
|
||||
handleMobileSendPopupOpen,
|
||||
@@ -33,12 +33,27 @@ export default function UnableOption({
|
||||
soldoutFlag,
|
||||
});
|
||||
|
||||
const isLoading = USE_SELECTOR("isLoading", (state) => state.common.appStatus?.showLoadingPanel?.show);
|
||||
const favoriteFlagData = USE_SELECTOR("favoriteFlagData", (state) => state.myPage.favoriteFlagData);
|
||||
const isLoading = USE_SELECTOR(
|
||||
"isLoading",
|
||||
(state) => state.common.appStatus?.showLoadingPanel?.show
|
||||
);
|
||||
const favoriteFlagData = USE_SELECTOR(
|
||||
"favoriteFlagData",
|
||||
(state) => state.myPage.favoriteFlagData
|
||||
);
|
||||
|
||||
const tooltipDes = $L("Scan for more information about the product.");
|
||||
|
||||
const { price2, price3, price5, priceInfo, rewd, offerInfo, patncNm, installmentMonths } = productInfo;
|
||||
const {
|
||||
price2,
|
||||
price3,
|
||||
price5,
|
||||
priceInfo,
|
||||
rewd,
|
||||
offerInfo,
|
||||
patncNm,
|
||||
installmentMonths,
|
||||
} = productInfo;
|
||||
|
||||
const {
|
||||
discountRate,
|
||||
@@ -49,7 +64,10 @@ export default function UnableOption({
|
||||
promotionCode,
|
||||
} = usePriceInfo(priceInfo) || {};
|
||||
|
||||
const popupVisible = USE_SELECTOR("popupVisible", (state) => state.common.popup?.popupVisible);
|
||||
const popupVisible = USE_SELECTOR(
|
||||
"popupVisible",
|
||||
(state) => state.common.popup?.popupVisible
|
||||
);
|
||||
const TYPE_CASE = {
|
||||
// (기획서참고) 상품 상세 가격 노출 유형
|
||||
case1: price2 && !price3 && !price5,
|
||||
@@ -69,7 +87,10 @@ export default function UnableOption({
|
||||
if (current) {
|
||||
const spotId = current.getAttribute("data-spotlight-id");
|
||||
if (spotId) {
|
||||
if (spotId.indexOf("indicator-image") >= 0 || spotId.indexOf("indicator-shopbymobile_Btn") >= 0) {
|
||||
if (
|
||||
spotId.indexOf("indicator-image") >= 0 ||
|
||||
spotId.indexOf("indicator-shopbymobile_Btn") >= 0
|
||||
) {
|
||||
hasProperSpot = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user