[지라 이슈 없음] Log, IF-LGSP-LOG-005 / GNB 클릭 이력 수정

changed files:
1. logActions.js
2. SearchPanel.jsx
3. NoSearchResult.jsx

detail note:
1. sendLogGNB 함수 수정: menu와 nowMenu가 같을 경우 예외 처리
2. handleItemFocus 삭제,  sendLogGNB를 담당하는 useEffect 수정
3. props handleItemFocus 삭제
This commit is contained in:
younghoon100.park
2024-10-21 14:46:32 +09:00
parent 73f8643376
commit 2bd285dc41
3 changed files with 27 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
import { URLS } from "../api/apiConfig";
import { TLogEvent } from "../api/TLogEvent";
import { LOG_TP_NO } from "../utils/Config";
import { LOG_MENU, LOG_TP_NO } from "../utils/Config";
import {
formatGMTString,
getTimeDifferenceByMilliseconds,
@@ -410,8 +410,16 @@ export const sendLogGNB = (menu) => (dispatch, getState) => {
return;
}
if (menu === nowMenu || !menuMovSno) {
return;
if (
![
LOG_MENU.SEARCH_SEARCH,
LOG_MENU.SEARCH_RESULT,
LOG_MENU.SEARCH_BEST_SELLER,
].includes(menu)
) {
if (menu === nowMenu || !menuMovSno) {
return;
}
}
const newParams = {