home live full 화면에서 modal 전환시 로그 전송 추가
This commit is contained in:
@@ -48,6 +48,7 @@ import SingleProduct from "./SingleProduct/SingleProduct";
|
||||
import ThemeProduct from "./ThemeProduct/ThemeProduct";
|
||||
import UnableProduct from "./UnableProduct/UnableProduct";
|
||||
import YouMayLike from "./YouMayLike/YouMayLike";
|
||||
import { now } from "lodash";
|
||||
|
||||
export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
|
||||
const dispatch = useDispatch();
|
||||
@@ -195,7 +196,7 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
|
||||
liveFlag: "Y",
|
||||
qrType: "billingDetail",
|
||||
});
|
||||
}, [serverHOST, serverType, deviceInfo, entryMenu, nowMenu, productInfo]);
|
||||
}, [serverHOST, serverType, deviceInfo, entryMenu, productInfo]);
|
||||
|
||||
const onSpotlightUpTButton = (e) => {
|
||||
e.stopPropagation();
|
||||
|
||||
@@ -316,17 +316,19 @@ const PlayerPanel = ({
|
||||
const mediaLogParamsRef = useRef(null);
|
||||
const prevNowMenuRef = useRef(null);
|
||||
const watchInterval = useRef(null);
|
||||
// useEffect(() => {
|
||||
// console.log("###videoLoaded", videoLoaded);
|
||||
// if (nowMenu) {
|
||||
// }
|
||||
// }, [videoLoaded]);
|
||||
|
||||
const currentLiveShowInfo = useMemo(() => {
|
||||
if (liveShowInfos && liveShowInfos.length > 0) {
|
||||
const panelInfoChanId = panelInfo?.chanId;
|
||||
const isLive = panelInfo?.shptmBanrTpNm === "LIVE";
|
||||
|
||||
const isModal = panelInfo?.modal;
|
||||
if (isLive) {
|
||||
// live full 화면에서 modal 전환시 로그 전송 추가
|
||||
if (isModal) {
|
||||
dispatch(sendLogGNB(Config.LOG_MENU.FULL));
|
||||
prevNowMenuRef.current = nowMenuRef.current;
|
||||
return () => dispatch(sendLogGNB(prevNowMenuRef.current));
|
||||
}
|
||||
const liveShowInfo = liveShowInfos //
|
||||
.find(({ chanId }) => panelInfoChanId === chanId);
|
||||
|
||||
@@ -337,7 +339,12 @@ const PlayerPanel = ({
|
||||
}
|
||||
|
||||
return {};
|
||||
}, [liveShowInfos, panelInfo?.chanId, panelInfo?.shptmBanrTpNm]);
|
||||
}, [
|
||||
liveShowInfos,
|
||||
panelInfo?.chanId,
|
||||
panelInfo?.shptmBanrTpNm,
|
||||
panelInfo?.modal,
|
||||
]);
|
||||
|
||||
const currentVODShowInfo = useMemo(() => {
|
||||
if (showDetailInfo && showDetailInfo.length > 0) {
|
||||
@@ -362,10 +369,6 @@ const PlayerPanel = ({
|
||||
|
||||
return () => dispatch(sendLogGNB(prevNowMenuRef.current));
|
||||
}
|
||||
// 통합로그 관련 : al_banner_shown 관련
|
||||
// else if (panelInfo?.modal) {
|
||||
// dispatch(sendLogGNB(entryMenu));
|
||||
// }
|
||||
}, [panelInfo?.modal, panelInfo?.shptmBanrTpNm]);
|
||||
|
||||
// creating live log params
|
||||
|
||||
Reference in New Issue
Block a user