[Log] added, log menu: "Welcome Event"

This commit is contained in:
younghoon100.park
2024-07-02 18:24:02 +09:00
parent d1ca7e7043
commit f78400395b
3 changed files with 8 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ export const getMenuByTargetContent = (contentTarget) => {
} else if (type === "HP") {
return LOG_MENU.HOT_PICKS;
} else if (type === "WE") {
return "Temp, Welcome Event"; // pyh todo, menu 문의
return LOG_MENU.WELCOME_EVENT;
} else if (type === "OS") {
return LOG_MENU.ON_SALE;
} else if (type === "BS") {

View File

@@ -220,7 +220,7 @@ export const LOG_TP_NO = {
LG_ACCOUNT_LOGIN: " 700",
};
// TV log update, 로그 layout_240509_Themepage추가.xlsx
// TV log update
export const LOG_MENU = {
APP: "App",
HOME_BANNER_1: "HomeBanner:1",
@@ -239,6 +239,7 @@ export const LOG_MENU = {
UNKNOWN: "Unknown",
EVENT_POPUP: "Event Popup", // completed
WELCOME_EVENT: "Welcome Event",
TERMS_CONDITIONS: "Terms & Conditions", // completed
HOME_TOP: "Home/Top", // completed

View File

@@ -50,7 +50,7 @@ const getShopTpNm = (evntTpCd) => {
};
const WelcomeEventPanel = ({ spotlightId }) => {
const { sendLogShopByMobile } = useLogService();
const { sendLogGNB, sendLogShopByMobile } = useLogService();
const dispatch = useDispatch();
@@ -125,6 +125,10 @@ const WelcomeEventPanel = ({ spotlightId }) => {
}
}, [billCpnSno, dispatch, eventDatas, evntId, evntTpCd, userNumber]);
useEffect(() => {
sendLogGNB(Config.LOG_MENU.WELCOME_EVENT);
}, [sendLogGNB]);
useEffect(() => {
if (eventIssuedStatusSuccess === 0 && eventIssuedStatusSuccess !== null) {
dispatch(setShowPopup(Config.ACTIVE_POPUP.smsPopup));