diff --git a/apps/docs/app/contributing/ContributingToC.tsx b/apps/docs/app/contributing/ContributingToC.tsx index e1d8423f89a..ea2a953f15f 100644 --- a/apps/docs/app/contributing/ContributingToC.tsx +++ b/apps/docs/app/contributing/ContributingToC.tsx @@ -5,7 +5,8 @@ import type { HTMLAttributes } from 'react' import { useEffect, useState } from 'react' import { useBreakpoint } from 'common' -import { cn, Popover_Shadcn_, PopoverContent_Shadcn_, PopoverTrigger_Shadcn_ } from 'ui' +import { cn, Separator, Sheet, SheetContent, SheetHeader, SheetTrigger } from 'ui' +import { Feedback } from '~/components/Feedback' interface TocItem extends HTMLAttributes { label: string @@ -18,7 +19,7 @@ export function ContributingToc({ className }: { className?: string }) { useEffect(() => { const headings = [ - ...document.querySelectorAll('article.prose > h2,h3'), + ...document.querySelectorAll('article.prose > h2,h3:not(#feedback-title)'), ] as Array const tocItems = headings .filter((heading) => !!heading.id) @@ -30,20 +31,16 @@ export function ContributingToc({ className }: { className?: string }) { }, []) return mobileToc ? ( - + ) : (