통합로그 피드백 : AL_GNB_CLICK 로그수정
This commit is contained in:
@@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useRef, useState } from "react";
|
||||
|
||||
import classNames from "classnames";
|
||||
import compose from "ramda/src/compose";
|
||||
import { useSelector } from "react-redux";
|
||||
import { useDispatch, useSelector } from "react-redux";
|
||||
|
||||
import { Job } from "@enact/core/util";
|
||||
import { Marquee, MarqueeController } from "@enact/sandstone/Marquee";
|
||||
@@ -10,6 +10,8 @@ import Spotlight from "@enact/spotlight";
|
||||
import Spottable from "@enact/spotlight/Spottable";
|
||||
|
||||
import css from "./TabItem.module.less";
|
||||
import { sendLogTotalRecommend } from "../../actions/logActions";
|
||||
import { LOG_CONTEXT_NAME, LOG_MESSAGE_ID } from "../../utils/Config";
|
||||
|
||||
const SpottableComponent = Spottable("div");
|
||||
const TabItemBase = ({
|
||||
@@ -35,6 +37,7 @@ const TabItemBase = ({
|
||||
...rest
|
||||
}) => {
|
||||
const [focused, setFocused] = useState(false);
|
||||
const dispatch = useDispatch();
|
||||
const { cursorVisible } = useSelector((state) => state.common.appStatus);
|
||||
const panels = useSelector((state) => state.panels.panels);
|
||||
const clearPressedJob = useRef(
|
||||
@@ -69,6 +72,13 @@ const TabItemBase = ({
|
||||
if (spotlightId) {
|
||||
setLastFocusId(spotlightId);
|
||||
}
|
||||
dispatch(
|
||||
sendLogTotalRecommend({
|
||||
contextName: LOG_CONTEXT_NAME.GNB,
|
||||
messageId: LOG_MESSAGE_ID.GNB,
|
||||
buttonTitle: title,
|
||||
})
|
||||
);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@@ -62,8 +62,8 @@ const TabItemBase = ({
|
||||
sendLogTotalRecommend({
|
||||
contextName: LOG_CONTEXT_NAME.GNB,
|
||||
messageId: LOG_MESSAGE_ID.GNB,
|
||||
preButtonTitle: mainMenuTitle,
|
||||
buttonTitle: patncNm ? patncNm : subtitle,
|
||||
preButtonTitle: subtitle,
|
||||
// buttonTitle: patncNm ? patncNm : subtitle,
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user