From 98126e90b23d48f2a7c6cfdb30cba685549350c0 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Tue, 28 Dec 2021 11:27:35 +0800 Subject: [PATCH] Fix 'weekly watch reminder' target path --- ui/component/notification/view.jsx | 2 ++ ui/constants/notifications.js | 1 + 2 files changed, 3 insertions(+) diff --git a/ui/component/notification/view.jsx b/ui/component/notification/view.jsx index 10133e280..49ee78a41 100644 --- a/ui/component/notification/view.jsx +++ b/ui/component/notification/view.jsx @@ -80,6 +80,7 @@ export default function Notification(props: Props) { break; case RULE.DAILY_WATCH_AVAILABLE: case RULE.DAILY_WATCH_REMIND: + case RULE.WEEKLY_WATCH_REMINDER: case RULE.MISSED_OUT: case RULE.REWARDS_APPROVAL_PROMPT: icon = ; @@ -138,6 +139,7 @@ export default function Notification(props: Props) { switch (notification_rule) { case RULE.DAILY_WATCH_AVAILABLE: case RULE.DAILY_WATCH_REMIND: + case RULE.WEEKLY_WATCH_REMINDER: return `/$/${PAGES.CHANNELS_FOLLOWING}`; case RULE.MISSED_OUT: case RULE.REWARDS_APPROVAL_PROMPT: diff --git a/ui/constants/notifications.js b/ui/constants/notifications.js index 18687042a..cbf3caecb 100644 --- a/ui/constants/notifications.js +++ b/ui/constants/notifications.js @@ -7,6 +7,7 @@ export const RULE = { NEW_LIVESTREAM: 'new_livestream', DAILY_WATCH_AVAILABLE: 'daily_watch_available', DAILY_WATCH_REMIND: 'daily_watch_remind', + WEEKLY_WATCH_REMINDER: 'weekly_watch_reminder', MISSED_OUT: 'missed_out', REWARDS_APPROVAL_PROMPT: 'rewards_approval_prompt', CREATOR_SUBSCRIBER: 'creator_subscriber',