Fix auth login flow, Iran Yekan/Doran fonts, and account tiles.
Prevent stale /auth/me from wiping a fresh session, unblock login submit, allow localhost HMR, and drop the tile "مشاهده" CTA. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
27d5cd0186
commit
68365457a1
@@ -0,0 +1,29 @@
|
||||
import { api } from "@/lib/api";
|
||||
|
||||
export type CustomerOrderItem = {
|
||||
id: string;
|
||||
nameFa: string;
|
||||
variantLabel: string | null;
|
||||
quantity: number;
|
||||
unitPrice: number;
|
||||
storeId: string;
|
||||
};
|
||||
|
||||
export type CustomerOrder = {
|
||||
id: string;
|
||||
status: string;
|
||||
itemCount: number;
|
||||
totalAmount: number;
|
||||
note: string;
|
||||
createdAt: string;
|
||||
items: CustomerOrderItem[];
|
||||
fulfillments: { id: string; storeId: string; status: string }[];
|
||||
};
|
||||
|
||||
export function fetchMyOrders() {
|
||||
return api<CustomerOrder[]>("/orders/mine");
|
||||
}
|
||||
|
||||
export function fetchMyOrder(id: string) {
|
||||
return api<CustomerOrder>(`/orders/mine/${id}`);
|
||||
}
|
||||
Reference in New Issue
Block a user