Skip to content

Commit

Permalink
feat: add icon for course update notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Saad Yousaf authored and saadyousafarbi committed Feb 27, 2024
1 parent 7636422 commit 83407b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Notifications/utils.js
Expand Up @@ -7,6 +7,7 @@ import {
PostOutline,
Report,
Verified,
Newspaper,
} from '@openedx/paragon/icons';

export const splitNotificationsByTime = (notificationList) => {
Expand Down Expand Up @@ -42,6 +43,7 @@ export const getIconByType = (type) => {
content_reported: { icon: Report, class: 'text-danger' },
response_endorsed: { icon: Verified, class: 'text-primary-500' },
response_endorsed_on_thread: { icon: Verified, class: 'text-primary-500' },
course_update: { icon: Newspaper, class: 'text-primary-500' },
};
return iconMap[type] || { icon: PostOutline, class: 'text-primary-500' };
};
Expand Down

0 comments on commit 83407b4

Please sign in to comment.