From 90bc3f4728773ce6c3152d817918acdee99ccd1c Mon Sep 17 00:00:00 2001 From: Ahtisham Shahid Date: Tue, 6 Feb 2024 14:28:07 +0500 Subject: [PATCH] chore: added new notification icons (#546) * chore: added new notification icons --- src/Notifications/utils.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Notifications/utils.js b/src/Notifications/utils.js index d8227c28..06427e40 100644 --- a/src/Notifications/utils.js +++ b/src/Notifications/utils.js @@ -2,7 +2,12 @@ import { useEffect } from 'react'; import { getConfig } from '@edx/frontend-platform'; import { logError } from '@edx/frontend-platform/logging'; -import { QuestionAnswerOutline, PostOutline } from '@edx/paragon/icons'; +import { + QuestionAnswerOutline, + PostOutline, + Report, + Verified, +} from '@edx/paragon/icons'; export const splitNotificationsByTime = (notificationList) => { let splittedData = []; @@ -34,6 +39,9 @@ export const getIconByType = (type) => { new_response: { icon: QuestionAnswerOutline, class: 'text-primary-500' }, new_comment: { icon: QuestionAnswerOutline, class: 'text-primary-500' }, new_comment_on_response: { icon: QuestionAnswerOutline, class: 'text-primary-500' }, + 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' }, }; return iconMap[type] || { icon: PostOutline, class: 'text-primary-500' }; };