diff --git a/app/konto/bestellungen/page.tsx b/app/konto/bestellungen/page.tsx index ffa9672..6bc41dc 100644 --- a/app/konto/bestellungen/page.tsx +++ b/app/konto/bestellungen/page.tsx @@ -1,20 +1,13 @@ import type { Metadata } from "next"; import { redirect } from "next/navigation"; import Link from "next/link"; -import Image from "next/image"; import { Reveal } from "../../components/Reveal"; import { Footer } from "../../components/Footer"; import { formatPrice, formatDate } from "../../lib/format"; import { getSessionCustomer, getCustomerOrders } from "../../lib/customerAuth"; -import { getProductImagesByIds } from "../../lib/payload"; import { OrderStatusBadge } from "../components/OrderStatusBadge"; import { LogoutButton } from "../components/LogoutButton"; -// Caps how many of an order's items get a thumbnail before folding the -// rest into a "+N" pill — a row here is one line in a list, not a full -// receipt (that's the detail page), so it stays a glance-able preview. -const MAX_THUMBNAILS = 4; - // robots: noindex — account area, same reasoning as /checkout. export const metadata: Metadata = { title: "Meine Bestellungen", @@ -30,7 +23,6 @@ export default async function KontoBestellungenPage() { if (!session) redirect("/konto/login"); const orders = await getCustomerOrders(session.token, session.customer.id); - const imagesByProductId = await getProductImagesByIds(orders.flatMap((order) => order.productIds)); return ( <> @@ -47,31 +39,12 @@ export default async function KontoBestellungenPage() {
Du hast noch keine Bestellung aufgegeben.
) : (Bestellnummer
{order.orderNumber}
@@ -93,8 +66,7 @@ export default async function KontoBestellungenPage() {{formatPrice(order.total)}