Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions Frontendd/src/components/ui/confirmation-modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const ConfirmationModal = ({
onClose,
onConfirm,
title,
// message,
refundInfo
message,
// refundInfo

}) => {
if (!isOpen) return null;
Expand All @@ -19,7 +19,7 @@ const ConfirmationModal = ({
</h2>

<p className="text-gray-600 mb-6">
{refundInfo ? `Are you sure you want to cancel your registration? This action cannot be undone. Total ₹${refundInfo.refundData.refundAmount} will be refunded.` : 'Cannot cancel due to an error'}
{message}
</p>

<div className="flex justify-end gap-3">
Expand All @@ -30,16 +30,9 @@ const ConfirmationModal = ({
Cancel
</button>

{
refundInfo ? (
<button
onClick={onConfirm}
className="px-4 py-2 rounded-lg bg-red-500 text-white hover:bg-red-600 transition"
>
<button onClick={onConfirm} className="px-4 py-2 rounded-lg bg-red-500 text-white hover:bg-red-600 transition">
Confirm
</button>
) : (null)
}
</div>
</div>
</div>
Expand Down
Loading
Loading