Add support for reward approval prompt

This commit is contained in:
Thomas Zarebczan 2021-06-03 14:54:06 -04:00
parent 3ce551f106
commit b8c5a0ed29
No known key found for this signature in database
GPG key ID: D505010BDB4364BC
2 changed files with 3 additions and 0 deletions

View file

@ -45,6 +45,7 @@ export default function Notification(props: Props) {
notificationTarget = `/$/${PAGES.CHANNELS_FOLLOWING}`;
break;
case NOTIFICATIONS.MISSED_OUT:
case NOTIFICATIONS.REWARDS_APPROVAL_PROMPT:
notificationTarget = `/$/${PAGES.REWARDS_VERIFY}?redirect=/$/${PAGES.REWARDS}`;
break;
default:
@ -87,6 +88,7 @@ export default function Notification(props: Props) {
case NOTIFICATIONS.DAILY_WATCH_AVAILABLE:
case NOTIFICATIONS.DAILY_WATCH_REMIND:
case NOTIFICATIONS.MISSED_OUT:
case NOTIFICATIONS.REWARDS_APPROVAL_PROMPT:
icon = <Icon icon={ICONS.LBC} sectionIcon />;
break;
default:

View file

@ -2,6 +2,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 REWARDS_APPROVAL_PROMPT = 'rewards_approval_prompt';
export const DAILY_WATCH_AVAILABLE = 'daily_watch_available';
export const DAILY_WATCH_REMIND = 'daily_watch_remind';
export const NEW_CONTENT = 'new_content';