Skip to content

Commit

Permalink
Add prize expiration notification
Browse files Browse the repository at this point in the history
  • Loading branch information
RubyMineshaft committed Mar 27, 2024
1 parent ba65563 commit 6df3eb7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/Notifications/Notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ class NotificationEntry extends React.Component<NotificationEntryProps, any> {

case "aiReviewDone":
return `/game/${notification.game_id}`;
case "prizeCodeExpiring":
return "/supporter";
}

return null;
Expand Down Expand Up @@ -553,6 +555,14 @@ class NotificationEntry extends React.Component<NotificationEntryProps, any> {
)}
</div>
);
case "prizeCodeExpiring":
return (
<div>
Your {notification.code_level} tier prize code expires in{" "}
{notification.expires_in_days} days. Please consider supporting to extend
your benefits.{" "}
</div>
);

default:
console.error("Unsupported notification: ", notification.type, notification);
Expand Down

0 comments on commit 6df3eb7

Please sign in to comment.