From e41ed14ef4573572d5697cc3bff1bad2b6910727 Mon Sep 17 00:00:00 2001 From: Ricardo Castro Date: Sun, 30 Jun 2024 04:28:31 +0200 Subject: [PATCH] fix: add sender_id and recipient_id in the db query --- .../src/app/confirm/[giftId]/page.tsx | 54 +++++-------------- 1 file changed, 14 insertions(+), 40 deletions(-) diff --git a/apps/gifting-concierge/src/app/confirm/[giftId]/page.tsx b/apps/gifting-concierge/src/app/confirm/[giftId]/page.tsx index 5c4d82ab..cdbd874c 100644 --- a/apps/gifting-concierge/src/app/confirm/[giftId]/page.tsx +++ b/apps/gifting-concierge/src/app/confirm/[giftId]/page.tsx @@ -1,15 +1,6 @@ -import { Button } from "@theliaison/ui/button"; import Image from "next/image"; import Link from "next/link"; import { createClient } from "~/supabase/server"; -import { - Dialog, - DialogContent, - DialogDescription, - DialogHeader, - DialogTitle, - DialogTrigger, -} from "@theliaison/ui/dialog"; import { ConfirmGift } from "./confirm-gift"; import { ChevronRightIcon } from "lucide-react"; import ShippingForm from "./details/shipping-form"; @@ -24,7 +15,7 @@ export default async function Confirm({ const { data, error } = await supabase .from("gifts") - .select("id") + .select("id, recipient_id, sender_id") .eq("id", giftId) .single(); @@ -50,47 +41,30 @@ export default async function Confirm({

The Liaison Gifting concierge manages the gift sending.

-
- - - - {/* - - - - - Get Shipping Details - - Please provide your shipping details. Click confirm when - you're done. - - +
+ - -
*/} - - What is The Liaison - - - -
+ + + What is The Liaison + + + Giftbox - - + + ); }