[251123] Merge: develop_si base로 develop을 merge함
This commit is contained in:
@@ -12,6 +12,7 @@ import { getMainCategoryDetail, getMainYouMayLike } from '../../actions/mainActi
|
||||
import { finishModalMediaForce } from '../../actions/mediaActions';
|
||||
import { popPanel, updatePanel } from '../../actions/panelActions';
|
||||
import {
|
||||
// <<<<<<< HEAD
|
||||
finishVideoPreview,
|
||||
pauseFullscreenVideo,
|
||||
resumeFullscreenVideo,
|
||||
@@ -30,6 +31,45 @@ import THeaderCustom from './components/THeaderCustom';
|
||||
import css from './DetailPanel.module.less';
|
||||
import ProductAllSection from './ProductAllSection/ProductAllSection';
|
||||
import ThemeItemListOverlay from './ThemeItemListOverlay/ThemeItemListOverlay';
|
||||
// =======
|
||||
// changeAppStatus,
|
||||
// changeLocalSettings,
|
||||
// setHidePopup,
|
||||
// } from "../../actions/commonActions";
|
||||
// import { clearCouponInfo } from "../../actions/couponActions";
|
||||
// import { getDeviceAdditionInfo } from "../../actions/deviceActions";
|
||||
// import {
|
||||
// clearThemeDetail,
|
||||
// getThemeCurationDetailInfo,
|
||||
// getThemeHotelDetailInfo,
|
||||
// } from "../../actions/homeActions";
|
||||
// import {
|
||||
// getMainCategoryDetail,
|
||||
// getMainYouMayLike,
|
||||
// } from "../../actions/mainActions";
|
||||
// import { popPanel, updatePanel } from "../../actions/panelActions";
|
||||
// import { finishVideoPreview } from "../../actions/playActions";
|
||||
// import {
|
||||
// clearProductDetail,
|
||||
// getProductGroup,
|
||||
// getProductImageLength,
|
||||
// getProductOptionId,
|
||||
// } from "../../actions/productActions";
|
||||
// import MobileSendPopUp from "../../components/MobileSend/MobileSendPopUp";
|
||||
// import TBody from "../../components/TBody/TBody";
|
||||
// import THeader from "../../components/THeader/THeader";
|
||||
// import TPanel from "../../components/TPanel/TPanel";
|
||||
// import * as Config from "../../utils/Config";
|
||||
// import { panel_names } from "../../utils/Config";
|
||||
// import { $L, getQRCodeUrl } from "../../utils/helperMethods";
|
||||
// import css from "./DetailPanel.module.less";
|
||||
// import GroupProduct from "./GroupProduct/GroupProduct";
|
||||
// import SingleProduct from "./SingleProduct/SingleProduct";
|
||||
// import ThemeProduct from "./ThemeProduct/ThemeProduct";
|
||||
// import UnableProduct from "./UnableProduct/UnableProduct";
|
||||
// import YouMayLike from "./YouMayLike/YouMayLike";
|
||||
// import { now } from "lodash";
|
||||
// >>>>>>> gitlab/develop
|
||||
|
||||
export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
|
||||
const dispatch = useDispatch();
|
||||
@@ -128,6 +168,7 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
|
||||
const [productType, setProductType] = useState(null);
|
||||
const [openThemeItemOverlay, setOpenThemeItemOverlay] = useState(false);
|
||||
|
||||
// <<<<<<< HEAD
|
||||
const [scrollToSection, setScrollToSection] = useState(null);
|
||||
const [pendingScrollSection, setPendingScrollSection] = useState(null);
|
||||
const updateSelectedIndex = useCallback((newIndex) => {
|
||||
@@ -138,12 +179,79 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
|
||||
)()
|
||||
);
|
||||
}, []);
|
||||
// =======
|
||||
// useEffect(() => {
|
||||
// if (lgCatCd) {
|
||||
// dispatch(
|
||||
// getMainYouMayLike({
|
||||
// lgCatCd: lgCatCd,
|
||||
// exclCurationId: panelInfo?.curationId,
|
||||
// exclPatnrId: panelInfo?.patnrId,
|
||||
// exclPrdtId: panelInfo?.prdtId,
|
||||
// catDpTh3:
|
||||
// panelInfo?.type === "theme"
|
||||
// ? themeProductInfos[selectedIndex]?.catDpTh3
|
||||
// : productData?.catDpTh3,
|
||||
// catDpTh4:
|
||||
// panelInfo?.type === "theme"
|
||||
// ? themeProductInfos[selectedIndex]?.catDpTh4
|
||||
// : productData?.catDpTh4,
|
||||
// })
|
||||
// );
|
||||
// }
|
||||
// }, [panelInfo?.curationId, panelInfo?.patnrId, panelInfo?.prdtId, lgCatCd]);
|
||||
// >>>>>>> gitlab/develop
|
||||
|
||||
const updateThemeItemOverlay = useCallback((isOpen) => {
|
||||
setOpenThemeItemOverlay(fp.pipe(() => isOpen, Boolean)());
|
||||
}, []);
|
||||
|
||||
// <<<<<<< HEAD
|
||||
const onSpotlightUpTButton = useCallback((e) => {
|
||||
// =======
|
||||
// useEffect(() => {
|
||||
// if (
|
||||
// themeProductInfos &&
|
||||
// themeProductInfos.length > 0 &&
|
||||
// panelInfo?.themePrdtId
|
||||
// ) {
|
||||
// for (let i = 0; i < themeProductInfos.length; i++) {
|
||||
// if (themeProductInfos[i].prdtId === panelInfo?.themePrdtId) {
|
||||
// setSelectedIndex(i);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// if (hotelInfos && hotelInfos.length > 0 && panelInfo?.themeHotelId) {
|
||||
// for (let i = 0; i < hotelInfos.length; i++) {
|
||||
// if (hotelInfos[i].hotelId === panelInfo?.themeHotelId) {
|
||||
// setSelectedIndex(i);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }, [
|
||||
// themeProductInfos,
|
||||
// hotelInfos,
|
||||
// panelInfo?.themePrdtId,
|
||||
// panelInfo?.themeHotelId,
|
||||
// ]);
|
||||
|
||||
// const { detailUrl } = useMemo(() => {
|
||||
// return getQRCodeUrl({
|
||||
// serverHOST,
|
||||
// serverType,
|
||||
// index: deviceInfo?.dvcIndex,
|
||||
// patnrId: productInfo?.patnrId,
|
||||
// prdtId: productInfo?.prdtId,
|
||||
// entryMenu: entryMenu,
|
||||
// nowMenu: nowMenu,
|
||||
// liveFlag: "Y",
|
||||
// qrType: "billingDetail",
|
||||
// });
|
||||
// }, [serverHOST, serverType, deviceInfo, entryMenu, productInfo]);
|
||||
|
||||
// const onSpotlightUpTButton = (e) => {
|
||||
// >>>>>>> gitlab/develop
|
||||
e.stopPropagation();
|
||||
Spotlight.focus('spotlightId_backBtn');
|
||||
}, []);
|
||||
@@ -1041,6 +1149,7 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
|
||||
productInfo={productDataSource}
|
||||
isOpen={openThemeItemOverlay}
|
||||
panelInfo={panelInfo}
|
||||
// <<<<<<< HEAD
|
||||
productType={productType}
|
||||
setSelectedIndex={updateSelectedIndex}
|
||||
openThemeItemOverlay={openThemeItemOverlay}
|
||||
@@ -1048,5 +1157,55 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
|
||||
/>
|
||||
</TPanel>
|
||||
</div>
|
||||
// =======
|
||||
// setSelectedIndex={setSelectedIndex}
|
||||
// p
|
||||
// roductInfo={productData || themeProductInfos[selectedIndex]}
|
||||
// setIsYouMayLikeOpened={setIsYouMayLikeOpened}
|
||||
// />
|
||||
// )}
|
||||
// {activePopup === Config.ACTIVE_POPUP.smsPopup && (
|
||||
// <MobileSendPopUp
|
||||
// open={popupVisible}
|
||||
// onClose={handleSMSonClose}
|
||||
// title={$L("Send a purchase link for this item via SMS")}
|
||||
// subTitle={mobileSendPopUpSubtitle}
|
||||
// patncNm={
|
||||
// panelInfo?.type === "theme" &&
|
||||
// themeProductInfos &&
|
||||
// themeProductInfos[selectedIndex]
|
||||
// ? themeProductInfos[selectedIndex].patncNm
|
||||
// : productData?.patncNm
|
||||
// }
|
||||
// productImg={mobileSendPopUpProductImg}
|
||||
// patnrId={panelInfo?.patnrId}
|
||||
// prdtId={
|
||||
// panelInfo?.type === "theme" &&
|
||||
// themeProductInfos &&
|
||||
// themeProductInfos[selectedIndex]
|
||||
// ? themeProductInfos[selectedIndex].prdtId
|
||||
// : panelInfo?.prdtId
|
||||
// }
|
||||
// smsTpCd={panelInfo?.type === "hotel" ? "APP00205" : "APP00201"}
|
||||
// curationId={panelInfo?.curationId}
|
||||
// curationNm={panelInfo?.curationNm}
|
||||
// hotelId={
|
||||
// panelInfo?.type === "hotel" && hotelInfos[selectedIndex]?.hotelId
|
||||
// }
|
||||
// hotelNm={
|
||||
// panelInfo?.type === "hotel" && hotelInfos[selectedIndex]?.hotelNm
|
||||
// }
|
||||
// hotelDtlUrl={
|
||||
// panelInfo?.type === "hotel" &&
|
||||
// hotelInfos[selectedIndex]?.hotelDetailInfo?.hotelDtlUrl
|
||||
// }
|
||||
// productPrice={panelInfo?.type === "hotel" && Price()}
|
||||
// shopByMobileLogRef={shopByMobileLogRef}
|
||||
// spotlightId="shopbymobile_Btn"
|
||||
// smsText={productInfo?.pmtSuptYn === "Y" ? detailUrl : undefined}
|
||||
// />
|
||||
// )}
|
||||
// </>
|
||||
// >>>>>>> gitlab/develop
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user