Skip to content

Commit

Permalink
adding in get started to Guides page for webpack#743
Browse files Browse the repository at this point in the history
  • Loading branch information
johnathanstewartmlb committed Jan 28, 2017
1 parent 0497e28 commit 0d8e858
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions components/sidebar/sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ import SidebarItem from '../sidebar-item/sidebar-item';

export default props => {
let { sectionName, pages, currentPage } = props;
let getStarted = null;
if (sectionName === 'guides') {
getStarted = (
<SidebarItem
url={ `/get-started` }
title="Get Started"
/>
);
}

return (
<nav className="sidebar">
Expand All @@ -13,6 +22,7 @@ export default props => {
title="Introduction"
currentPage= { currentPage }
/>
{ getStarted }
{
pages.map(({ url, title, anchors }, i) =>
<SidebarItem
Expand Down

0 comments on commit 0d8e858

Please sign in to comment.