Fix 'weekly watch reminder' target path

This commit is contained in:
infinite-persistence 2021-12-28 11:27:35 +08:00 committed by Thomas Zarebczan
parent ea1691609b
commit 98126e90b2
2 changed files with 3 additions and 0 deletions

View file

@ -80,6 +80,7 @@ export default function Notification(props: Props) {
break; break;
case RULE.DAILY_WATCH_AVAILABLE: case RULE.DAILY_WATCH_AVAILABLE:
case RULE.DAILY_WATCH_REMIND: case RULE.DAILY_WATCH_REMIND:
case RULE.WEEKLY_WATCH_REMINDER:
case RULE.MISSED_OUT: case RULE.MISSED_OUT:
case RULE.REWARDS_APPROVAL_PROMPT: case RULE.REWARDS_APPROVAL_PROMPT:
icon = <Icon icon={ICONS.LBC} sectionIcon />; icon = <Icon icon={ICONS.LBC} sectionIcon />;
@ -138,6 +139,7 @@ export default function Notification(props: Props) {
switch (notification_rule) { switch (notification_rule) {
case RULE.DAILY_WATCH_AVAILABLE: case RULE.DAILY_WATCH_AVAILABLE:
case RULE.DAILY_WATCH_REMIND: case RULE.DAILY_WATCH_REMIND:
case RULE.WEEKLY_WATCH_REMINDER:
return `/$/${PAGES.CHANNELS_FOLLOWING}`; return `/$/${PAGES.CHANNELS_FOLLOWING}`;
case RULE.MISSED_OUT: case RULE.MISSED_OUT:
case RULE.REWARDS_APPROVAL_PROMPT: case RULE.REWARDS_APPROVAL_PROMPT:

View file

@ -7,6 +7,7 @@ export const RULE = {
NEW_LIVESTREAM: 'new_livestream', NEW_LIVESTREAM: 'new_livestream',
DAILY_WATCH_AVAILABLE: 'daily_watch_available', DAILY_WATCH_AVAILABLE: 'daily_watch_available',
DAILY_WATCH_REMIND: 'daily_watch_remind', DAILY_WATCH_REMIND: 'daily_watch_remind',
WEEKLY_WATCH_REMINDER: 'weekly_watch_reminder',
MISSED_OUT: 'missed_out', MISSED_OUT: 'missed_out',
REWARDS_APPROVAL_PROMPT: 'rewards_approval_prompt', REWARDS_APPROVAL_PROMPT: 'rewards_approval_prompt',
CREATOR_SUBSCRIBER: 'creator_subscriber', CREATOR_SUBSCRIBER: 'creator_subscriber',