diff --git a/app/reservations/page.js b/app/reservations/page.js index 02cda3f..5fed7a3 100644 --- a/app/reservations/page.js +++ b/app/reservations/page.js @@ -687,7 +687,7 @@ function PaymentDialog({ const amount = reservation.depositAmount || reservation.totalPrice || 0; const currencySign = reservation.currencySign || t("sypSymbol"); const selectedMethod = paymentMethods?.find( - (m) => (m?.id ?? m?.name) === selectedPayment + (m) => (m?.id ?? m?.name) === selectedPayment, ); const isHaram = selectedMethod?.name?.toLowerCase?.() === "haram"; const canPay = payingId !== reservation.id && (!isHaram || !!receiptImage); @@ -854,55 +854,64 @@ function PaymentDialog({ {isHaram && ( -
-

- - {t("uploadReceipt", { defaultValue: "إيصال الدفع" })} -

- {receiptImage ? ( -
- receipt - -
-

{receiptImage.name}

-
+
+

+ + {t("uploadReceipt", { defaultValue: "إيصال الدفع" })} +

+ {receiptImage ? ( +
+ receipt + +
+

+ {receiptImage.name} +

- ) : ( - - )} -
+
+ ) : ( + + )} +
)}
@@ -1663,7 +1672,7 @@ export default function UserReservationsPage() { await payDeposit({ reservationId: r.id, paymentTypeId: selectedPayment, - transactionType: "", + transactionType: 1, comment: null, paymentImage: receiptImage || null, });