diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-13 02:44:18 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-13 02:44:18 +0800 |
commit | a4604cb2f294f08318aa432b233571ae4e205fd5 (patch) | |
tree | bed045a9018342ec3f45ffa17aa3f5396cb6b7bf /packages/website/ts/pages/documentation/docs_home.tsx | |
parent | 3ca943948184bf8d891dddb423e5b285d2463e7b (diff) | |
download | dexon-sol-tools-a4604cb2f294f08318aa432b233571ae4e205fd5.tar dexon-sol-tools-a4604cb2f294f08318aa432b233571ae4e205fd5.tar.gz dexon-sol-tools-a4604cb2f294f08318aa432b233571ae4e205fd5.tar.bz2 dexon-sol-tools-a4604cb2f294f08318aa432b233571ae4e205fd5.tar.lz dexon-sol-tools-a4604cb2f294f08318aa432b233571ae4e205fd5.tar.xz dexon-sol-tools-a4604cb2f294f08318aa432b233571ae4e205fd5.tar.zst dexon-sol-tools-a4604cb2f294f08318aa432b233571ae4e205fd5.zip |
Pass down sidebar instead of sectionNameToLinks
Diffstat (limited to 'packages/website/ts/pages/documentation/docs_home.tsx')
-rw-r--r-- | packages/website/ts/pages/documentation/docs_home.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/website/ts/pages/documentation/docs_home.tsx b/packages/website/ts/pages/documentation/docs_home.tsx index c5b4ed318..1059bb844 100644 --- a/packages/website/ts/pages/documentation/docs_home.tsx +++ b/packages/website/ts/pages/documentation/docs_home.tsx @@ -1,4 +1,4 @@ -import { ALink } from '@0xproject/react-shared'; +import { ALink, NestedSidebarMenu } from '@0xproject/react-shared'; import { ObjectMap } from '@0xproject/types'; import * as _ from 'lodash'; import * as React from 'react'; @@ -330,10 +330,13 @@ export class DocsHome extends React.Component<DocsHomeProps, DocsHomeState> { categoryToPackages={CATEGORY_TO_PACKAGES} /> ); + const sidebar = ( + <NestedSidebarMenu sectionNameToLinks={sectionNameToLinks} shouldReformatMenuItemNames={false} /> + ); return ( <DevelopersPage mainContent={mainContent} - sectionNameToLinks={sectionNameToLinks} + sidebar={sidebar} location={this.props.location} screenWidth={this.props.screenWidth} translate={this.props.translate} |