Fix ESLint import paths and Next.js 15 params type for leads page

This commit is contained in:
2026-06-18 15:29:55 +02:00
parent 0898ad4ebf
commit 10b5de7a21
2 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -17,10 +17,12 @@ import {
} from "@/components/ui/select"
import { getLeadById } from "@/data/leads"
import { getNotesByLeadId } from "@/data/notes"
import { use } from "react"
import { ArrowLeft, Edit, ExternalLink } from "lucide-react"
export default function LeadDetailsPage({ params }: { params: { id: string } }) {
const lead = getLeadById(params.id)
export default function LeadDetailsPage({ params }: { params: Promise<{ id: string }> }) {
const { id } = use(params)
const lead = getLeadById(id)
const leadNotes = lead ? getNotesByLeadId(lead.id) : []
if (!lead) {