All files / src/app/(site)/account/orders page.tsx

0% Statements 0/22
100% Branches 0/0
0% Functions 0/1
0% Lines 0/22

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23                                             
import { Metadata } from "next";
import { redirect } from "next/navigation";
import { auth } from "@/lib/auth/auth";
import AccountOrders from "@/components/features/account/AccountOrders";

export const metadata: Metadata = {
  title: "My Orders | Elite Events",
  description: "View your order history"};

export default async function OrdersPage() {
  const session = await auth();
  if (!session?.user) {
    redirect("/signin?callbackUrl=/account/orders");
  }
  return (
    <section className="overflow-hidden pt-[140px] pb-20 bg-gray-2 dark:bg-gray-900">
      <div className="max-w-[1170px] w-full mx-auto px-4 sm:px-8 xl:px-0">
        <AccountOrders />
      </div>
    </section>
  );
}