fix: react-doctor modal/dialog/dropzone a11y — 18 files to role+tabIndex+onKeyDown or dialog
This commit is contained in:
@@ -198,15 +198,23 @@ await getSession();
|
||||
LIMIT 10`,
|
||||
);
|
||||
|
||||
const recentOrders = recentRes.rows
|
||||
.filter((o) => o.status !== "cancelled")
|
||||
.map((o) => ({
|
||||
const recentOrders: Array<{
|
||||
id: string;
|
||||
customer_name: string;
|
||||
total: number;
|
||||
status: string;
|
||||
created_at: string;
|
||||
}> = [];
|
||||
for (const o of recentRes.rows) {
|
||||
if (o.status === "cancelled") continue;
|
||||
recentOrders.push({
|
||||
id: o.id || "",
|
||||
customer_name: o.customer_name || "Guest",
|
||||
total: (o.total_cents || 0) / 100,
|
||||
status: o.status || "unknown",
|
||||
created_at: formatTimeAgo(o.placed_at),
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
todayOrders: todayOrderCount,
|
||||
|
||||
Reference in New Issue
Block a user