Skip to content

Commit

Permalink
Support hasReact prop for sandboxes. (elastic#13270)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Aug 7, 2017
1 parent b91dabd commit 2bc7291
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui_framework/doc_site/src/components/guide_nav/guide_nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ export class GuideNav extends Component {
this.props.sandboxes.filter(item => (
item.name.toLowerCase().indexOf(this.state.search.toLowerCase()) !== -1
)).map((item, index) => {
const icon =
item.hasReact
? <div className="guideNavItem__reactLogo" />
: undefined;
return (
<div key={`sandboxNavItem-${index}`} className="guideNavItem">
<Link
Expand All @@ -131,6 +135,8 @@ export class GuideNav extends Component {
>
{item.name}
</Link>

{icon}
</div>
);
});
Expand Down

0 comments on commit 2bc7291

Please sign in to comment.