File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
uilib-docs/src/components/navbar Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3,17 +3,16 @@ import Link from 'gatsby-link';
3
3
import _ from 'lodash' ;
4
4
import classnames from 'classnames' ;
5
5
6
- const undocumentedGroups = [ 'Incubator' ] ;
7
-
8
6
export default ( { id, link, components, currentPage} ) => {
9
7
const hasChildren = _ . size ( components ) > 1 ;
10
8
11
9
if ( ! hasChildren ) {
12
10
return < ItemEntry id = { id } link = { link } currentPage = { currentPage } /> ;
13
11
} else {
12
+ const isUndocumented = _ . isUndefined ( _ . find ( components , { node : { displayName : id } } ) ) ;
14
13
return (
15
14
< li key = { id } >
16
- { undocumentedGroups . includes ( id ) ? (
15
+ { isUndocumented ? (
17
16
< span className = { classnames ( 'entry' , { selected : id === currentPage } ) } > { id } </ span >
18
17
) : (
19
18
< Link key = { id } to = { `/docs/${ id } /` } >
You can’t perform that action at this time.
0 commit comments