Skip to content

Commit

Permalink
chore: added new notification icons (#546)
Browse files Browse the repository at this point in the history
* chore: added new notification icons
  • Loading branch information
AhtishamShahid committed Feb 6, 2024
1 parent 3212bef commit 90bc3f4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Notifications/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down Expand Up @@ -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' };
};
Expand Down

0 comments on commit 90bc3f4

Please sign in to comment.