Notification: further handle "missed_out" + other tweaks #6052

Merged
infinite-persistence merged 2 commits from ip/missed-out into master 2021-05-12 19:51:55 +02:00
2 changed files with 5 additions and 0 deletions
Showing only changes of commit 88b0dafde7 - Show all commits

View file

@ -42,6 +42,9 @@ export default function Notification(props: Props) {
case NOTIFICATIONS.DAILY_WATCH_REMIND:
notificationTarget = `/$/${PAGES.CHANNELS_FOLLOWING}`;
break;
case NOTIFICATIONS.MISSED_OUT:
notificationTarget = `/$/${PAGES.REWARDS_VERIFY}?redirect=/$/${PAGES.REWARDS}`;
break;
default:
notificationTarget = notification_parameters.device.target;
}
@ -80,6 +83,7 @@ export default function Notification(props: Props) {
break;
case NOTIFICATIONS.DAILY_WATCH_AVAILABLE:
case NOTIFICATIONS.DAILY_WATCH_REMIND:
case NOTIFICATIONS.MISSED_OUT:
icon = <Icon icon={ICONS.LBC} sectionIcon />;
break;
default:

View file

@ -1,6 +1,7 @@
export const NOTIFICATION_CREATOR_SUBSCRIBER = 'creator_subscriber';
export const NOTIFICATION_COMMENT = 'comment';
export const NOTIFICATION_REPLY = 'comment-reply';
export const MISSED_OUT = 'missed_out';
export const DAILY_WATCH_AVAILABLE = 'daily_watch_available';
export const DAILY_WATCH_REMIND = 'daily_watch_remind';
export const NEW_CONTENT = 'new_content';