update order details each 10 s and enhance the steppers UI and logic

This commit is contained in:
2025-11-13 00:18:23 +03:00
parent 208437f262
commit 8f23ab9cc3
3 changed files with 92 additions and 67 deletions

View File

@@ -30,6 +30,9 @@ export default function OrderPage() {
},
{
skip: !orderId,
// return it t0 60000 after finish testing
pollingInterval: 10000,
refetchOnMountOrArgChange: true,
},
);
@@ -114,7 +117,7 @@ export default function OrderPage() {
<Divider style={{ margin: "12px 0" }} />
<Stepper />
<Stepper statuses={orderDetails?.status} />
</div>
</Card>