aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/documentation
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-13 02:44:18 +0800
committerFabio Berger <me@fabioberger.com>2018-10-13 02:44:18 +0800
commita4604cb2f294f08318aa432b233571ae4e205fd5 (patch)
treebed045a9018342ec3f45ffa17aa3f5396cb6b7bf /packages/website/ts/components/documentation
parent3ca943948184bf8d891dddb423e5b285d2463e7b (diff)
downloaddexon-0x-contracts-a4604cb2f294f08318aa432b233571ae4e205fd5.tar.gz
dexon-0x-contracts-a4604cb2f294f08318aa432b233571ae4e205fd5.tar.zst
dexon-0x-contracts-a4604cb2f294f08318aa432b233571ae4e205fd5.zip
Pass down sidebar instead of sectionNameToLinks
Diffstat (limited to 'packages/website/ts/components/documentation')
-rw-r--r--packages/website/ts/components/documentation/docs_top_bar.tsx11
1 files changed, 3 insertions, 8 deletions
diff --git a/packages/website/ts/components/documentation/docs_top_bar.tsx b/packages/website/ts/components/documentation/docs_top_bar.tsx
index 9a2146f9c..41273eb30 100644
--- a/packages/website/ts/components/documentation/docs_top_bar.tsx
+++ b/packages/website/ts/components/documentation/docs_top_bar.tsx
@@ -13,7 +13,7 @@ import { Translate } from 'ts/utils/translate';
export interface DocsTopBarProps {
location: Location;
translate: Translate;
- sectionNameToLinks?: ObjectMap<ALink[]>;
+ sidebar?: React.ReactNode;
}
interface DocsTopBarState {
@@ -143,13 +143,8 @@ export class DocsTopBar extends React.Component<DocsTopBarProps, DocsTopBarState
openSecondary={true}
onRequestChange={this._onMenuButtonClick.bind(this)}
>
- <Container className="clearfix pl1">
- <NestedSidebarMenu
- sectionNameToLinks={this.props.sectionNameToLinks}
- shouldDisplaySectionHeaders={true}
- shouldReformatMenuItemNames={false}
- onMenuItemClick={this._onMenuButtonClick.bind(this)}
- />
+ <Container className="clearfix pl1" onClick={this._onMenuButtonClick.bind(this)}>
+ {this.props.sidebar}
</Container>
</Drawer>
);