File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 11import  React ,  {  type  ReactNode  }  from  "react" ; 
22import  clsx  from  "clsx" ; 
33import  Link  from  "@docusaurus/Link" ; 
4- import  { 
5-   useDocById , 
6-   findFirstSidebarItemLink , 
7- }  from  "@docusaurus/plugin-content-docs/client" ; 
4+ import  {  findFirstSidebarItemLink  }  from  "@docusaurus/plugin-content-docs/client" ; 
85import  {  usePluralForm  }  from  "@docusaurus/theme-common" ; 
96import  isInternalUrl  from  "@docusaurus/isInternalUrl" ; 
107import  {  translate  }  from  "@docusaurus/Translate" ; 
@@ -104,14 +101,12 @@ function CardCategory({ item }: { item: PropSidebarItemCategory }): ReactNode {
104101
105102function  CardLink ( {  item } : {  item : PropSidebarItemLink  } ) : ReactNode  { 
106103  const  icon  =  isInternalUrl ( item . href )  ? "📄️"  : "🔗" ; 
107-   const  doc  =  useDocById ( item . docId  ??  undefined ) ; 
108104  return  ( 
109105    < CardLayout 
110106      className = { item . className } 
111107      href = { item . href } 
112108      icon = { icon } 
113109      title = { item . label } 
114-       description = { item . description  ??  doc ?. description } 
115110    /> 
116111  ) ; 
117112} 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments