need confrim
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"new": "سفارش جدید",
|
"new": "سفارش جدید",
|
||||||
|
"needConfirmation": "نیاز به تایید فروشگاه",
|
||||||
"pendingPayment": "در انتظار پرداخت",
|
"pendingPayment": "در انتظار پرداخت",
|
||||||
"paid": "پرداخت شده",
|
"paid": "پرداخت شده",
|
||||||
"confirmed": "تایید شده",
|
"confirmed": "تایید شده",
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user