From 36ebab7f9afe178ca4b32f9ab516292461962663 Mon Sep 17 00:00:00 2001 From: Rafiafrzl Date: Tue, 23 Dec 2025 10:30:44 +0700 Subject: [PATCH] refactor: remove unused UserHistoryModal and related state management --- .../notificationDetail/IndexNotificationDetail.jsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/pages/notificationDetail/IndexNotificationDetail.jsx b/src/pages/notificationDetail/IndexNotificationDetail.jsx index 1cadd15..6144c4b 100644 --- a/src/pages/notificationDetail/IndexNotificationDetail.jsx +++ b/src/pages/notificationDetail/IndexNotificationDetail.jsx @@ -21,7 +21,6 @@ import { SendOutlined, } from '@ant-design/icons'; import { getNotificationDetail, createNotificationLog, getNotificationLogByNotificationId } from '../../api/notification'; -import UserHistoryModal from '../notification/component/UserHistoryModal'; const { Content } = Layout; const { Text, Paragraph, Link } = Typography; @@ -143,7 +142,6 @@ const NotificationDetailTab = () => { const [notification, setNotification] = useState(null); const [loading, setLoading] = useState(true); const [error, setError] = useState(null); - const [modalContent, setModalContent] = useState(null); // 'user', atau null const [isAddingLog, setIsAddingLog] = useState(false); // Log history states @@ -506,11 +504,9 @@ const NotificationDetailTab = () => { - + setModalContent('user')} > { - setModalContent(null)} - notificationData={notification} - /> ); };