aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-07 02:49:00 +0800
committerFabio Berger <me@fabioberger.com>2018-03-07 02:49:00 +0800
commit71008dc819d32f7568f9e80e8d4f08754b12adb7 (patch)
tree1098f024f38127af8576f99eddb9f55ad0cc1939 /packages
parent9301173f7d42548935e79ce64e64ad9320c860b5 (diff)
downloaddexon-sol-tools-71008dc819d32f7568f9e80e8d4f08754b12adb7.tar.gz
dexon-sol-tools-71008dc819d32f7568f9e80e8d4f08754b12adb7.tar.zst
dexon-sol-tools-71008dc819d32f7568f9e80e8d4f08754b12adb7.zip
Remove menuSubsectionsBySection prop from Documentation component
Diffstat (limited to 'packages')
-rw-r--r--packages/react-docs/src/ts/components/documentation.tsx4
-rw-r--r--packages/website/ts/pages/documentation/doc_page.tsx1
2 files changed, 2 insertions, 3 deletions
diff --git a/packages/react-docs/src/ts/components/documentation.tsx b/packages/react-docs/src/ts/components/documentation.tsx
index dfc041361..43ffc39c6 100644
--- a/packages/react-docs/src/ts/components/documentation.tsx
+++ b/packages/react-docs/src/ts/components/documentation.tsx
@@ -51,7 +51,6 @@ export interface DocumentationProps {
availableVersions: string[];
docsInfo: DocsInfo;
docAgnosticFormat?: DocAgnosticFormat;
- menuSubsectionsBySection: MenuSubsectionsBySection;
sourceUrl: string;
}
@@ -84,6 +83,7 @@ export class Documentation extends React.Component<DocumentationProps, Documenta
}
}
public render() {
+ const menuSubsectionsBySection = this.props.docsInfo.getMenuSubsectionsBySection(this.props.docAgnosticFormat);
return (
<div>
{_.isUndefined(this.props.docAgnosticFormat) ? (
@@ -111,7 +111,7 @@ export class Documentation extends React.Component<DocumentationProps, Documenta
versions={this.props.availableVersions}
title={this.props.docsInfo.displayName}
topLevelMenu={this.props.docsInfo.getMenu(this.props.selectedVersion)}
- menuSubsectionsBySection={this.props.menuSubsectionsBySection}
+ menuSubsectionsBySection={menuSubsectionsBySection}
/>
</div>
</div>
diff --git a/packages/website/ts/pages/documentation/doc_page.tsx b/packages/website/ts/pages/documentation/doc_page.tsx
index eabeddabd..cf2111b29 100644
--- a/packages/website/ts/pages/documentation/doc_page.tsx
+++ b/packages/website/ts/pages/documentation/doc_page.tsx
@@ -85,7 +85,6 @@ export class DocPage extends React.Component<DocPageProps, DocPageState> {
availableVersions={this.props.availableDocVersions}
docsInfo={this.props.docsInfo}
docAgnosticFormat={this.state.docAgnosticFormat}
- menuSubsectionsBySection={menuSubsectionsBySection}
sourceUrl={sourceUrl}
/>
</div>