[Log] Log, IF-LGSP-LOG-010 (Reminders on/off) 변경 된 시나리오 반영

This commit is contained in:
younghoon100.park
2024-05-24 13:44:32 +09:00
parent 74b265e3d9
commit 9d7328ae09
2 changed files with 10 additions and 11 deletions

View File

@@ -334,23 +334,23 @@ export default function useLogService() {
*/
const sendLogMyPageAlertFlag = useCallback(
(params) => {
const { logTpNo } = params;
const { alertFlag } = params;
const menuMap = {
[LOG_TP_NO.MY_PAGE.ALERT_FLAG]: LOG_MENU.MY_PAGE_REMINDERS,
};
const menu = menuMap[logTpNo] || "";
if (!alertFlag) {
console.error("sendLogMyPageAlertFlag invalid params", params);
return;
}
const newParams = {
...params,
entryMenu: menu,
nowMenu: menu,
alertFlag,
entryMenu: entryMenuRef.current,
logTpNo: LOG_TP_NO.MY_PAGE.ALERT_FLAG,
nowMenu: nowMenuRef.current,
};
dispatch(postLog(newParams));
},
[dispatch]
[dispatch, entryMenuRef, nowMenuRef]
);
/**

View File

@@ -70,7 +70,6 @@ export default function Reminders({ title, cbScrollTo }) {
sendLogMyPageAlertFlag({
alertFlag: flag === "N" ? "off" : "on",
logTpNo: Config.LOG_TP_NO.MY_PAGE.ALERT_FLAG,
});
}, [dispatch, sendLogMyPageAlertFlag, useAlarm]);