diff --git a/src/components/ModalPopup/ModalMypageModify.tsx b/src/components/ModalPopup/ModalMypageModify.tsx index 3aef64390..ff5465253 100644 --- a/src/components/ModalPopup/ModalMypageModify.tsx +++ b/src/components/ModalPopup/ModalMypageModify.tsx @@ -178,7 +178,9 @@ const ModalMypageModify = ({ method: "post", data: { nickname }, onError: () => setAlert(t("page_modify.nickname_failed")), + //#region event2023Fall onSuccess: () => event2023FallQuestComplete("nicknameChanging"), // event2023Fall + //#endregion }); } if (account !== loginInfo?.account) { @@ -188,7 +190,9 @@ const ModalMypageModify = ({ method: "post", data: { account }, onError: () => setAlert(t("page_modify.account_failed")), + //#region event2023Fall onSuccess: () => event2023FallQuestComplete("accountChanging"), // event2023Fall + //#endregion }); } if (isNeedToUpdateLoginInfo) { diff --git a/src/components/ModalPopup/ModalNotification.tsx b/src/components/ModalPopup/ModalNotification.tsx index dead3f072..fe6da26f5 100644 --- a/src/components/ModalPopup/ModalNotification.tsx +++ b/src/components/ModalPopup/ModalNotification.tsx @@ -1,6 +1,7 @@ import { useCallback, useRef } from "react"; import { useTranslation } from "react-i18next"; +import { useEvent2023FallQuestComplete } from "hooks/event/useEvent2023FallQuestComplete"; import { useFetchRecoilState, useValueRecoilState, @@ -64,6 +65,9 @@ const ModalNotification = ({ const notificationOptions = useValueRecoilState("notificationOptions"); const fetchNotificationOptions = useFetchRecoilState("notificationOptions"); const isAxiosCalled = useRef(false); + //#region event2023Fall + const event2023FallQuestComplete = useEvent2023FallQuestComplete(); + //#endregion const styleTitle = { ...theme.font18, @@ -108,8 +112,13 @@ const ModalNotification = ({ }); fetchNotificationOptions(); isAxiosCalled.current = false; + + //#region event2023Fall + if (optionName === "advertisement" && value) + event2023FallQuestComplete("adPushAgreement"); + //#endregion }, - [deviceToken] + [deviceToken, event2023FallQuestComplete] ); const onChangeNotificationAll = useCallback( async (value: boolean) => { @@ -133,13 +142,18 @@ const ModalNotification = ({ beforeDepart: value, chatting: value, notice: value, + advertisement: value, }, }, }); fetchNotificationOptions(); isAxiosCalled.current = false; + + //#region event2023Fall + if (value) event2023FallQuestComplete("adPushAgreement"); + //#endregion }, - [deviceToken] + [deviceToken, event2023FallQuestComplete] ); const onChangeNotificationChatting = useCallback( onChangeNotificationOption("chatting"), @@ -153,6 +167,10 @@ const ModalNotification = ({ onChangeNotificationOption("notice"), [onChangeNotificationOption] ); + const onChangeNotificationAdvertisement = useCallback( + onChangeNotificationOption("advertisement"), + [onChangeNotificationOption] + ); return ( + ) : ( diff --git a/src/static/events/2023fallTicket1.svg b/src/static/events/2023fallTicket1.svg index 99c6488da..1ebbc1424 100644 --- a/src/static/events/2023fallTicket1.svg +++ b/src/static/events/2023fallTicket1.svg @@ -1,11 +1,11 @@ - + - + diff --git a/src/static/events/2023fallTicket2.svg b/src/static/events/2023fallTicket2.svg index 9a21f5d0b..78fb37de1 100644 --- a/src/static/events/2023fallTicket2.svg +++ b/src/static/events/2023fallTicket2.svg @@ -1,11 +1,11 @@ - + - + diff --git a/src/tools/trans.js b/src/tools/trans.js index 90701ea00..44a02f148 100644 --- a/src/tools/trans.js +++ b/src/tools/trans.js @@ -23,9 +23,10 @@ const getLocationName = (location, langPreference) => { const isNotificationOn = (notificationOptions) => { const isOn = - // notificationOptions?.advertisement || // notificationOptions?.beforeDepart || - notificationOptions?.chatting || notificationOptions?.notice; + notificationOptions?.advertisement || + notificationOptions?.chatting || + notificationOptions?.notice; // notificationOptions?.keywords?.length; return !!isOn; };