Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
linkText = (
<>
{before}
{highlightMatch}
{after}
);
}
}
return (
<li>
{!(page.isUhfLink && location.hostname !== 'localhost') && searchRegEx.test(page.title) && (
{linkText}
{page.isExternal && }
)}</li>
private _renderSection = (page: INavPage, sectionIndex: number) => {
if (page.isCategory && page.pages && this._hasMatchChild(page)) {
const key = `${page.title}-${sectionIndex}`;
return (
<li>
{this._renderLinkList(page.pages, false)}
</li>
);
}
};
private _renderSection = (page: INavPage, sectionIndex: number) => {
if (page.isCategory && page.pages && this._hasMatchChild(page)) {
const key = `${page.title}-${sectionIndex}`;
return (
<li>
{this._renderLinkList(page.pages, false)}
</li>
);
}
};
.filter(page => !page.isHiddenFromMainNav && hasActiveChild(page, platform))
.forEach(page => {