diff --git a/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/Category/index.tsx b/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/Category/index.tsx index a3bb2f05d355..8890a8043d2b 100644 --- a/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/Category/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/Category/index.tsx @@ -72,23 +72,35 @@ function useCategoryHrefWithSSRFallback( } function CollapseButton({ + collapsed, categoryLabel, onClick, }: { + collapsed: boolean; categoryLabel: string; onClick: ComponentProps<'button'>['onClick']; }) { return (