Skip to content

Commit ac2a990

Browse files
Merge pull request #845 from ScrubN/fix-cardlists
Exclude hidden items from card lists
2 parents 3498183 + 8118c33 commit ac2a990

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

sidebars.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,10 @@ const sidebars = {
250250
{
251251
'type': 'category',
252252
'label': 'Data Binding',
253+
'link': {
254+
'type': 'doc',
255+
'id': 'guides/data-binding/index',
256+
},
253257
'items': [
254258
'guides/data-binding/inotifypropertychanged',
255259
'guides/data-binding/binding-classes',
@@ -306,6 +310,10 @@ const sidebars = {
306310
{
307311
'type': 'category',
308312
'label': 'Custom Controls',
313+
'link': {
314+
'type': 'doc',
315+
'id': 'guides/custom-controls/index',
316+
},
309317
'items': [
310318
'guides/custom-controls/types-of-control',
311319
'guides/custom-controls/create-a-custom-panel',

src/components/DocsCard/DocsCardList.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ export const DocsCardList = ({ list }) => {
66
console.log('list', list);
77
return (
88
<div className='card-container-setup'>
9-
{list.map(item => <DocsCard key={item.docId} label={item.label} link={item.href} />)}
9+
{list.filter(item => !item.className?.includes('hidden'))
10+
.map(item => <DocsCard key={item.docId} label={item.label} link={item.href} />)}
1011
</div>
1112
)
1213
}

0 commit comments

Comments
 (0)