need confrim

This commit is contained in:
hamid zarghami
2026-06-28 16:17:08 +03:30
parent 8b6f586636
commit 1300491a2d
4 changed files with 11 additions and 1 deletions
@@ -454,6 +454,7 @@ export interface OrderDetail {
tableNumber: string | null; tableNumber: string | null;
status: status:
| "pendingPayment" | "pendingPayment"
| "needConfirmation"
| "new" | "new"
| "preparing" | "preparing"
| "ready" | "ready"
@@ -113,6 +113,14 @@ function OrderTrackingPage() {
</> </>
) : orderDetail?.data ? ( ) : orderDetail?.data ? (
<> <>
{orderDetail.data.status === 'needConfirmation' && (
<div className='rounded-2xl bg-red-50 px-4 py-3 text-center'>
<p className='text-sm text-red-800 leading-6'>
لطفاً پس از دریافت پیامک، حداکثر تا ۲ ساعت نسبت به پرداخت اقدام کنید؛ در غیر این صورت سفارش بهصورت خودکار لغو خواهد شد.
</p>
</div>
)}
<h1 className='text-lg font-semibold text-center'> <h1 className='text-lg font-semibold text-center'>
{getDeliveryMethodTitle(orderDetail.data.deliveryMethod.method)} {getDeliveryMethodTitle(orderDetail.data.deliveryMethod.method)}
</h1> </h1>
+1
View File
@@ -21,6 +21,7 @@
}, },
"status": { "status": {
"new": "سفارش جدید", "new": "سفارش جدید",
"needConfirmation": "نیاز به تایید فروشگاه",
"pendingPayment": "در انتظار پرداخت", "pendingPayment": "در انتظار پرداخت",
"paid": "پرداخت شده", "paid": "پرداخت شده",
"confirmed": "تایید شده", "confirmed": "تایید شده",
+1 -1
View File
File diff suppressed because one or more lines are too long