-
+
+
+
+ {/*
*/}
+
-
خطا در برقراری ارتباط
-
متأسفانه در دریافت اطلاعات سفارشها مشکلی پیش آمده است. لطفاً اتصال اینترنت خود را بررسی کرده و مجدداً تلاش کنید.
-
+
خطا در برقراری ارتباط
+
+ متأسفانه در دریافت اطلاعات سفارشها مشکلی پیش آمده است. لطفاً اتصال اینترنت خود را بررسی کرده و مجدداً تلاش کنید.
+
+
)
diff --git a/src/components/orders/order-stepper-status.tsx b/src/components/orders/order-stepper-status.tsx
index 8d0cba9..e21217e 100644
--- a/src/components/orders/order-stepper-status.tsx
+++ b/src/components/orders/order-stepper-status.tsx
@@ -34,15 +34,13 @@ const OrderStepperStatus = ({
return (
- {/* ردیف دایرهها و خطوط — خط دقیقاً به لبه دایره میچسبد */}
{computedSteps.map((step, index) => {
const isLast = index === computedSteps.length - 1
const isCompleted = step.status === 'completed'
const isCurrent = step.status === 'current'
- const isUpcoming = step.status === 'upcoming'
- const circleBg = isUpcoming ? 'bg-gray-300' : 'bg-primary-action'
+ const circleBg = step.status === 'upcoming' ? 'bg-gray-300' : 'bg-primary-action'
const nextLineBg =
index < currentStep ? 'bg-primary-action' : 'bg-gray-300'
@@ -55,10 +53,10 @@ const OrderStepperStatus = ({
`}
>
{isCompleted && (
-
+
)}
{isCurrent && (
-
+
)}
@@ -70,14 +68,13 @@ const OrderStepperStatus = ({
})}
- {/* ردیف لیبلها — دقیقاً زیر هر دایره */}
{computedSteps.map((step, index) => {
const isLast = index === computedSteps.length - 1
- const isUpcoming = step.status === 'upcoming'
- const textColor = isUpcoming
- ? 'text-gray-500'
- : 'text-primary-action'
+ const textColor =
+ step.status === 'upcoming'
+ ? 'text-gray-500'
+ : 'text-primary-action'
return (
diff --git a/src/components/orders/order-time-address-info-alert.tsx b/src/components/orders/order-time-address-info-alert.tsx
new file mode 100644
index 0000000..a005d76
--- /dev/null
+++ b/src/components/orders/order-time-address-info-alert.tsx
@@ -0,0 +1,23 @@
+import { ClockIcon, MapPinIcon } from 'lucide-react'
+import React from 'react'
+
+const OrderTimeAddressInfoAlert = () => {
+ return (
+
+
+
+
+ زمان تخمینی تحویل: ۳۰–۴۵ دقیقه دیگر
+
+
+
+
+
+ نارمک، خیابان شهید دستغیب، پلاک ۱۲، واحد ۳
+
+
+
+ )
+}
+
+export default OrderTimeAddressInfoAlert
\ No newline at end of file
diff --git a/src/components/orders/orders-skeleton.tsx b/src/components/orders/orders-skeleton.tsx
index ebf3b7f..233ec2e 100644
--- a/src/components/orders/orders-skeleton.tsx
+++ b/src/components/orders/orders-skeleton.tsx
@@ -1,47 +1,47 @@
import React from 'react';
const OrdersSkeleton = () => {
- return (
-
- {Array.from({ length: 10 }).map((_, index) => (
+ return (
+
+ {Array.from({ length: 10 }).map((_, index) => (
+
+
+
+
+
+
+
+ {Array.from({ length: 3 }).map((_, imgIndex) => (
-
+ key={imgIndex}
+ className="size-10 flex-shrink-0 rounded-lg bg-gray-200"
+ />
+ ))}
+
-
+
+
-
-
- {Array.from({ length: 3 }).map((_, imgIndex) => (
-
- ))}
-
-
-
-
-
-
-
- ))}
+
- );
+ ))}
+
+ );
};
export default OrdersSkeleton;
\ No newline at end of file