diff --git a/src/app/account/page.tsx b/src/app/account/page.tsx index c751173..ad1593c 100644 --- a/src/app/account/page.tsx +++ b/src/app/account/page.tsx @@ -30,6 +30,12 @@ export default async function AccountPage() { include: { items: true }, }); + const designReviews = await prisma.designApproval.findMany({ + where: { customerEmail: customer.email, status: 'IN_REVIEW' }, + include: { product: true }, + orderBy: { createdAt: 'desc' }, + }); + return (
@@ -50,6 +56,34 @@ export default async function AccountPage() {
+

Design reviews

+ {designReviews.length === 0 ? ( +

No designs awaiting review.

+ ) : ( +
+ {designReviews.map((design) => ( + + design preview +
+

{design.product.name}

+

+ {new Date(design.createdAt).toLocaleDateString(undefined, { dateStyle: 'medium' })} +

+
+ Review → + + ))} +
+ )} +

Order history

{orders.length === 0 ? (

No orders yet.