File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -373,6 +373,10 @@ export function DocsLayout({
373
373
const [ showBytes , setShowBytes ] = useLocalStorage ( 'showBytes' , true )
374
374
const [ isFullWidth , setIsFullWidth ] = useLocalStorage ( 'docsFullWidth' , false )
375
375
376
+ const activePartners = partners . filter (
377
+ ( d ) => d . libraries ?. includes ( libraryId as any ) && d . status === 'active'
378
+ )
379
+
376
380
const menuItems = menuConfig . map ( ( group , i ) => {
377
381
const WrapperComp = group . collapsible ? 'details' : 'div'
378
382
const LabelComp = group . collapsible ? 'summary' : 'div'
@@ -622,9 +626,7 @@ export function DocsLayout({
622
626
< div className = "uppercase font-black text-center p-3 opacity-50" >
623
627
Our Partners
624
628
</ div >
625
- { ! partners . some ( ( d ) =>
626
- d . libraries ?. includes ( libraryId as any )
627
- ) ? (
629
+ { ! activePartners ?. length ? (
628
630
< div className = "hover:bg-gray-500/10 dark:hover:bg-gray-500/10 transition-colors" >
629
631
< a
630
632
href = { `mailto:[email protected] ?subject=TanStack ${
@@ -642,9 +644,8 @@ export function DocsLayout({
642
644
</ a >
643
645
</ div >
644
646
) : (
645
- partners
647
+ activePartners
646
648
. filter ( ( d ) => d . sidebarImgLight )
647
- . filter ( ( d ) => d . libraries ?. includes ( libraryId as any ) )
648
649
. map ( ( partner ) => {
649
650
return (
650
651
< div
You can’t perform that action at this time.
0 commit comments