Skip to content

Commit

Permalink
Docs: sidebar → hasSidebar (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
frontend-3 authored and sapegin committed Apr 3, 2017
1 parent 3fc8abd commit 186575d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ module.exports = {

// lib/styleguide/StyleGuideRenderer.js
import React from 'react';
const StyleGuideRenderer = ({ title, homepageUrl, components, toc, sidebar }) => (
const StyleGuideRenderer = ({ title, homepageUrl, components, toc, hasSidebar }) => (
<div className="root">
<h1>{title}</h1>
<main className="wrapper">
Expand All @@ -257,7 +257,7 @@ const StyleGuideRenderer = ({ title, homepageUrl, components, toc, sidebar }) =>
<Markdown text={`Generated with [React Styleguidist](${homepageUrl})`} />
</footer>
</div>
{sidebar &&
{hasSidebar &&
<div className="sidebar">
{toc}
</div>
Expand Down

0 comments on commit 186575d

Please sign in to comment.