diff --git a/src/app/admin/leads/[id]/page.tsx b/src/app/admin/leads/[id]/page.tsx index aa9d13d..161f577 100644 --- a/src/app/admin/leads/[id]/page.tsx +++ b/src/app/admin/leads/[id]/page.tsx @@ -2,15 +2,16 @@ import { notFound } from "next/navigation"; import { getLeadById, getActivityLog, getUpcomingReminders } from "@/lib/lead-service"; import { LeadDetail } from "@/components/admin/leads/LeadDetail"; -export default async function LeadDetailPage({ params }: { params: { id: string } }) { - const lead = await getLeadById(params.id); +export default async function LeadDetailPage({ params }: { params: Promise<{ id: string }> }) { + const { id } = await params; + const lead = await getLeadById(id); if (!lead) { notFound(); } - const activities = await getActivityLog(params.id); - const reminders = await getUpcomingReminders(params.id); + const activities = await getActivityLog(id); + const reminders = await getUpcomingReminders(id); return ; }