Skip to content

Commit

Permalink
feat: Project update comment notification (#1748)
Browse files Browse the repository at this point in the history
* feat: project update comment notification

* fix: dcl notification

* fix: notification title
  • Loading branch information
ncomerci committed Apr 17, 2024
1 parent 1195509 commit 13726b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Notifications/NotificationItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function getIcon(metadata: { customType: string }) {
case NotificationCustomType.Grant:
return Grant
case NotificationCustomType.ProposalComment:
case NotificationCustomType.ProjectUpdateComment:
return CircledComment
case NotificationCustomType.Proposal:
default:
Expand Down
1 change: 1 addition & 0 deletions src/types/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export enum NotificationCustomType {
Announcement = 'announcement',
Proposal = 'proposal',
ProposalComment = 'proposal_comment',
ProjectUpdateComment = 'project_update_comment',
Grant = 'grant',
}

Expand Down
4 changes: 4 additions & 0 deletions src/utils/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,8 @@ export const Notifications = {
title: (proposal: ProposalAttributes) => `New comment posted on proposal ${proposal.title}`,
body: 'Engage in a productive conversation by replying to this comment.',
},
ProjectUpdateCommented: {
title: (proposal: ProposalAttributes) => `New comment on your update for your project ${proposal.title}`,
body: 'Engage in a productive conversation by replying to this comment.',
},
}

0 comments on commit 13726b2

Please sign in to comment.