diff --git a/components/landing/faq.tsx b/components/landing/faq.tsx index 1a27570..19eee57 100644 --- a/components/landing/faq.tsx +++ b/components/landing/faq.tsx @@ -1,6 +1,6 @@ "use client"; -import { useState } from "react"; +import { useId, useState } from "react"; import { ChevronDown } from "lucide-react"; import { Reveal } from "@/components/landing/reveal"; import { SectionLabel } from "@/components/landing/section-label"; @@ -9,6 +9,7 @@ import { FAQ_CATEGORIES, FAQ_ITEMS, type FaqCategory } from "@/lib/faq"; import { cn } from "@/lib/utils"; export function Faq() { + const faqIdPrefix = useId(); const [category, setCategory] = useState("about"); const [openIndex, setOpenIndex] = useState(0); @@ -37,9 +38,10 @@ export function Faq() {