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 authored and snide committed Aug 2, 2017
1 parent ca713d6 commit fe3f6a8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ui_framework/doc_site/src/components/guide_nav/guide_nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class GuideNav extends Component {
className={previousClasses}
to={this.state.previousRoute ? this.state.previousRoute.path : ''}
>
<span className="fa fa-angle-left"></span>
<span className="fa fa-angle-left" />
</Link>
);

Expand All @@ -74,7 +74,7 @@ export class GuideNav extends Component {
className={nextClasses}
to={this.state.nextRoute ? this.state.nextRoute.path : ''}
>
<span className="fa fa-angle-right"></span>
<span className="fa fa-angle-right" />
</Link>
);

Expand Down 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 fe3f6a8

Please sign in to comment.