Skip to content

Commit 60f6c4d

Browse files
authored
Merge pull request #750 from johnstew/743-get-started-on-guides
adding in get started to Guides page for #743
2 parents 0497e28 + 0d8e858 commit 60f6c4d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

components/sidebar/sidebar.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ import SidebarItem from '../sidebar-item/sidebar-item';
33

44
export default props => {
55
let { sectionName, pages, currentPage } = props;
6+
let getStarted = null;
7+
if (sectionName === 'guides') {
8+
getStarted = (
9+
<SidebarItem
10+
url={ `/get-started` }
11+
title="Get Started"
12+
/>
13+
);
14+
}
615

716
return (
817
<nav className="sidebar">
@@ -13,6 +22,7 @@ export default props => {
1322
title="Introduction"
1423
currentPage= { currentPage }
1524
/>
25+
{ getStarted }
1626
{
1727
pages.map(({ url, title, anchors }, i) =>
1828
<SidebarItem

0 commit comments

Comments
 (0)