Skip to content

Commit 4088dbb

Browse files
authored
Merge pull request #132 from Moaguide-develop/feat/notification
design: 알림 여부에 따라 알랄트 메시지
2 parents 7f4cb68 + f067bf0 commit 4088dbb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/app/mypage/alarm/page.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,23 @@ const AlarmPage = () => {
5757
const toggleInterestedProductAlarm = () => {
5858
const newInterestedOn = !isInterestedProductAlarmOn;
5959
setIsInterestedProductAlarmOn(newInterestedOn);
60-
updateNotificationStatus(newInterestedOn, isMoaguideAlarmOn!);
60+
updateNotificationStatus(newInterestedOn, isMoaguideAlarmOn!);
61+
alert(
62+
`관심 상품 업데이트 알림이 ${
63+
newInterestedOn ? '설정되었습니다.' : '해제되었습니다.'
64+
}`
65+
);
6166
};
6267

6368
const toggleMoaguideAlarm = () => {
6469
const newMoaguideOn = !isMoaguideAlarmOn;
6570
setIsMoaguideAlarmOn(newMoaguideOn);
6671
updateNotificationStatus(isInterestedProductAlarmOn!, newMoaguideOn);
72+
alert(
73+
`모아가이드 제공 알림이 ${
74+
newMoaguideOn ? '설정되었습니다.' : '해제되었습니다.'
75+
}`
76+
);
6777
};
6878

6979
if (isInterestedProductAlarmOn === null || isMoaguideAlarmOn === null) {

0 commit comments

Comments
 (0)