Fix jwt-token
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
XCircleIcon,
|
||||
ExclamationTriangleIcon
|
||||
} from '@heroicons/react/24/outline';
|
||||
import { EditAlertModal, DetectionDetailsModal } from '../components/AlertModals';
|
||||
|
||||
const Alerts = () => {
|
||||
const [alertRules, setAlertRules] = useState([]);
|
||||
@@ -388,6 +389,27 @@ const Alerts = () => {
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
||||
{showEditModal && editingRule && (
|
||||
<EditAlertModal
|
||||
rule={editingRule}
|
||||
onClose={() => {
|
||||
setShowEditModal(false);
|
||||
setEditingRule(null);
|
||||
}}
|
||||
onSuccess={fetchAlertData}
|
||||
/>
|
||||
)}
|
||||
|
||||
{showDetectionModal && selectedDetection && (
|
||||
<DetectionDetailsModal
|
||||
detection={selectedDetection}
|
||||
onClose={() => {
|
||||
setShowDetectionModal(false);
|
||||
setSelectedDetection(null);
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user