refactor: remove unused UserHistoryModal and related state management

This commit is contained in:
2025-12-23 10:30:44 +07:00
parent a5b1fbef74
commit 36ebab7f9a

View File

@@ -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 = () => {
</Space>
</Card>
</Col>
<Col xs={24} md={8} style={{ cursor: 'pointer' }}>
<Col xs={24} md={8}>
<Card
hoverable
bodyStyle={{ padding: '12px', textAlign: 'center' }}
onClick={() => setModalContent('user')}
>
<Space>
<HistoryOutlined
@@ -860,11 +856,6 @@ const NotificationDetailTab = () => {
</Card>
</Content>
<UserHistoryModal
visible={modalContent === 'user'}
onCancel={() => setModalContent(null)}
notificationData={notification}
/>
</Layout>
);
};