diff --git a/apps/gifting-concierge/src/app/(dashboard)/dashboard/orders/[id]/page.tsx b/apps/gifting-concierge/src/app/(dashboard)/dashboard/orders/[id]/page.tsx index c28d54c..8c46b63 100644 --- a/apps/gifting-concierge/src/app/(dashboard)/dashboard/orders/[id]/page.tsx +++ b/apps/gifting-concierge/src/app/(dashboard)/dashboard/orders/[id]/page.tsx @@ -1,4 +1,7 @@ import { createClient } from "~/supabase/server"; +import { Card, CardContent, CardHeader, CardTitle } from "@theliaison/ui/card"; +import { Avatar } from "@nextui-org/react"; +import { Badge } from "@theliaison/ui/badge"; export default async function Component({ params: { id }, @@ -12,7 +15,7 @@ export default async function Component({ id, type, status, - users(id, full_name, email), + users(id, full_name, email, avatar_url), gift_recipients(id, name), gifts_orders_links(id, link, specs), updated_at, @@ -28,7 +31,49 @@ export default async function Component({ return (
-
{JSON.stringify(data, null, 2)}
+ + + Order + + +
+
+ +
+
+
+
+

Name

+

{data.users?.full_name}

+
+
+

Type

+

{data.type}

+
+
+

Link

+

{data.gifts_orders_links?.link}

+
+
+

Recipient

+

{data.gift_recipients?.name}

+
+
+
+
+

Status

+ + {data.status.replaceAll("_", " ")} + +
+
+

Specs

+

{data.gifts_orders_links?.specs}

+
+
+
+
+ {/*
{JSON.stringify(data, null, 2)}
*/}
); } diff --git a/apps/gifting-concierge/src/components/header.tsx b/apps/gifting-concierge/src/components/header.tsx index dd0ce3d..7cb5bce 100644 --- a/apps/gifting-concierge/src/components/header.tsx +++ b/apps/gifting-concierge/src/components/header.tsx @@ -3,8 +3,10 @@ import Image from "next/image"; import Link from "next/link"; import { createClient } from "~/supabase/server"; import { HeaderNavigation } from "./header/navigation"; +//import { usePathname } from "next/navigation"; export function Header({ showModeToggle }: { showModeToggle?: boolean }) { + return (