shimai
9 days ago 88a31d5a960bd10f3799bc00f8aa24461567d06e
web-app/src/components/common/WarningAlert.jsx
@@ -5,17 +5,20 @@
import React, { useState, useEffect, useCallback } from 'react';
import { Modal, List } from 'antd';
import { WarningOutlined, RightOutlined } from '@ant-design/icons';
import { RightOutlined } from '@ant-design/icons';
import { useCaseData } from '../../contexts/CaseDataContext';
import MediationTimelineAPIService from '../../services/MediationTimelineAPIService';
import './WarningAlert.css';
// 警告图标图片
const WARNING_ICON = '/warning.png';
/**
 * 预警消息列表弹窗
 */
const WarningModal = ({ visible, warnings, onClose }) => (
  <Modal
    title={<span><WarningOutlined style={{ color: '#faad14', marginRight: 8 }} />预警消息列表</span>}
    title={<span><img src={WARNING_ICON} alt="warning" className="warning-modal-icon" />预警消息列表</span>}
    open={visible}
    onCancel={onClose}
    footer={null}
@@ -90,7 +93,7 @@
  return (
    <div className="warning-alert">
      <div className="warning-alert-content">
        <WarningOutlined className="warning-icon" />
        <img src={WARNING_ICON} alt="warning" className="warning-icon-img" />
        <span className="warning-label">预警:</span>
        <span className="warning-text">{firstWarning.content}</span>
      </div>