From e8da716e8ffbc79c5bec4873c197d0a395266539 Mon Sep 17 00:00:00 2001 From: zain94rif Date: Tue, 13 Jan 2026 16:31:21 +0700 Subject: [PATCH] feat(svg): add new icon svg open mail --- .../component/ListNotification.jsx | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/pages/notification/component/ListNotification.jsx b/src/pages/notification/component/ListNotification.jsx index c7078f3..fc1b647 100644 --- a/src/pages/notification/component/ListNotification.jsx +++ b/src/pages/notification/component/ListNotification.jsx @@ -36,7 +36,6 @@ import { PlusOutlined, ExclamationCircleOutlined, SearchOutlined, - MailFilled, } from '@ant-design/icons'; import { useNavigate, Link as RouterLink } from 'react-router-dom'; import { @@ -49,7 +48,11 @@ import { } from '../../../api/notification'; const { Text, Paragraph, Link: AntdLink } = Typography; - +const openMail = ( + + + +); // Transform API response to component format const transformNotificationData = (apiData) => { return apiData.map((item, index) => ({ @@ -184,13 +187,13 @@ const ListNotification = memo(function ListNotification(props) { const getIconAndColor = (type) => { switch (type) { case 'critical': - return { IconComponent: MailFilled, color: '#faad14', bgColor: '#fff1f0' }; + return { IconComponent: MailOutlined, color: '#faad14', bgColor: '#fff1f0' }; case 'warning': - return { IconComponent: MailFilled, color: '#1890ff', bgColor: '#fffbe6' }; + return { IconComponent: MailOutlined, color: '#1890ff', bgColor: '#fffbe6' }; case 'resolved': - return { IconComponent: MailFilled, color: '#52c41a', bgColor: '#f6ffed' }; + return { IconComponent: MailOutlined, color: '#52c41a', bgColor: '#f6ffed' }; default: - return { IconComponent: MailFilled, color: '#1890ff', bgColor: '#e6f7ff' }; + return { IconComponent: MailOutlined, color: '#1890ff', bgColor: '#e6f7ff' }; } }; @@ -407,7 +410,11 @@ const ListNotification = memo(function ListNotification(props) { flexShrink: 0, }} > - + {notification.type === 'resolved' ? ( + openMail + ) : ( + + )}