diff --git a/src/components/common/ConfirmModal.jsx b/src/components/common/ConfirmModal.jsx index 0a26ece8..04e39cc4 100644 --- a/src/components/common/ConfirmModal.jsx +++ b/src/components/common/ConfirmModal.jsx @@ -1,11 +1,11 @@ import React, { useState } from 'react'; -const ConfirmModal = ({ type, onSubmit, onClose, message, loading }) => { +const ConfirmModal = ({ type, onSubmit, onClose, message, loading ,header}) => { const TypeofIcon = (type) => { switch (type) { case "delete": - return ; + return ; default: return null; } @@ -34,9 +34,15 @@ const ConfirmModal = ({ type, onSubmit, onClose, message, loading }) => { aria-label="Close" onClick={onClose} /> -
{TypeofIcon(type)} {message}
-