(fix:confirmModal) only close modal on click outisde

This commit is contained in:
ManishMadan2882
2025-05-24 01:19:14 +05:30
parent 14adfabf7e
commit 2d55b1f592

View File

@@ -32,12 +32,7 @@ export default function ConfirmationModal({
return (
<>
{modalState === 'ACTIVE' && (
<WrapperModal
close={() => {
setModalState('INACTIVE');
handleCancel && handleCancel();
}}
>
<WrapperModal close={() => setModalState('INACTIVE')}>
<div className="relative">
<div>
<p className="font-base mb-1 w-[90%] break-words text-lg text-jet dark:text-bright-gray">