[Log] Log, IF-LGSP-LOG-010 (Reminders on/off) 변경 된 시나리오 반영
This commit is contained in:
@@ -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]
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user