diff --git a/src/components/ReservationModal.tsx b/src/components/ReservationModal.tsx index 39c6b29..922f490 100644 --- a/src/components/ReservationModal.tsx +++ b/src/components/ReservationModal.tsx @@ -4,7 +4,11 @@ import { useNavigate } from "react-router-dom"; import { Cafe } from "../services/campaignApi"; import { chargePageUrl, createCharge } from "../services/ipgApi"; import { fetchWalletBalances } from "../services/walletApi"; -import { toEnglishDigits, toPersianDigits, formatPersianNumber } from "../utils/formatNumber"; +import { + toEnglishDigits, + toPersianDigits, + formatPersianNumber, +} from "../utils/formatNumber"; import { toE164 } from "../utils/phone"; import { setPendingReservation } from "../utils/pendingReservation"; import { getUserPhone } from "../utils/userPhone"; @@ -39,6 +43,8 @@ function PaymentRow({ bottomBorder?: boolean; infoIconParam?: boolean; }) { + const [showInfo, setShowInfo] = useState(false); + return (
+ مطابق مقررات نظام مالیاتی کشور، کارمزد درگاه پرداخت در تمامی + درگاههای پرداخت اعمال میشود. +
+{fieldErrors.name}
++ {fieldErrors.name} +
)} @@ -203,7 +246,9 @@ export default function ReservationModal({ inputMode="numeric" value={phone} onChange={(e) => { - const digits = toEnglishDigits(e.target.value).replace(/\D/g, "").slice(0, 11); + const digits = toEnglishDigits(e.target.value) + .replace(/\D/g, "") + .slice(0, 11); setPhone(toPersianDigits(digits)); clearFieldError("phone"); }} @@ -213,7 +258,9 @@ export default function ReservationModal({ }`} /> {fieldErrors.phone && ( -{fieldErrors.phone}
++ {fieldErrors.phone} +
)} @@ -242,10 +289,14 @@ export default function ReservationModal({