Pass down sidebar instead of sectionNameToLinks

This commit is contained in:
Fabio Berger
2018-10-12 19:44:18 +01:00
parent 3ca9439481
commit a4604cb2f2
4 changed files with 17 additions and 19 deletions

View File

@@ -6,6 +6,7 @@ import {
SupportedDocJson,
TypeDocUtils,
} from '@0xproject/react-docs';
import { NestedSidebarMenu } from '@0xproject/react-shared';
import findVersions = require('find-versions');
import * as _ from 'lodash';
import CircularProgress from 'material-ui/CircularProgress';
@@ -87,10 +88,13 @@ export class DocPage extends React.Component<DocPageProps, DocPageState> {
sourceUrl={sourceUrl}
/>
);
const sidebar = (
<NestedSidebarMenu sectionNameToLinks={sectionNameToLinks} shouldReformatMenuItemNames={false} />
);
return (
<DevelopersPage
sidebar={sidebar}
mainContent={mainContent}
sectionNameToLinks={sectionNameToLinks}
location={this.props.location}
screenWidth={this.props.screenWidth}
translate={this.props.translate}