need confrim
This commit is contained in:
@@ -454,6 +454,7 @@ export interface OrderDetail {
|
||||
tableNumber: string | null;
|
||||
status:
|
||||
| "pendingPayment"
|
||||
| "needConfirmation"
|
||||
| "new"
|
||||
| "preparing"
|
||||
| "ready"
|
||||
|
||||
@@ -113,6 +113,14 @@ function OrderTrackingPage() {
|
||||
</>
|
||||
) : 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'>
|
||||
{getDeliveryMethodTitle(orderDetail.data.deliveryMethod.method)}
|
||||
</h1>
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
},
|
||||
"status": {
|
||||
"new": "سفارش جدید",
|
||||
"needConfirmation": "نیاز به تایید فروشگاه",
|
||||
"pendingPayment": "در انتظار پرداخت",
|
||||
"paid": "پرداخت شده",
|
||||
"confirmed": "تایید شده",
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user