diff options
author | Fabio Berger <me@fabioberger.com> | 2018-03-07 03:38:45 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-03-07 03:38:45 +0800 |
commit | f8b8a10b8f914d05edfbc57081a40dccc8f464de (patch) | |
tree | 277df02560666e6bdf8a2c3b644ef5b720c5ea54 /packages/react-docs/src | |
parent | 01e505a5f4b514d285eedc6456d819d0649032d4 (diff) | |
download | dexon-sol-tools-f8b8a10b8f914d05edfbc57081a40dccc8f464de.tar.gz dexon-sol-tools-f8b8a10b8f914d05edfbc57081a40dccc8f464de.tar.zst dexon-sol-tools-f8b8a10b8f914d05edfbc57081a40dccc8f464de.zip |
Make sidebar header configurable
Diffstat (limited to 'packages/react-docs/src')
-rw-r--r-- | packages/react-docs/src/ts/components/documentation.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/react-docs/src/ts/components/documentation.tsx b/packages/react-docs/src/ts/components/documentation.tsx index 43ffc39c6..8be7cd62d 100644 --- a/packages/react-docs/src/ts/components/documentation.tsx +++ b/packages/react-docs/src/ts/components/documentation.tsx @@ -51,6 +51,7 @@ export interface DocumentationProps { availableVersions: string[]; docsInfo: DocsInfo; docAgnosticFormat?: DocAgnosticFormat; + sidebarHeader?: React.ReactNode; sourceUrl: string; } @@ -109,7 +110,7 @@ export class Documentation extends React.Component<DocumentationProps, Documenta <NestedSidebarMenu selectedVersion={this.props.selectedVersion} versions={this.props.availableVersions} - title={this.props.docsInfo.displayName} + sidebarHeader={this.props.sidebarHeader} topLevelMenu={this.props.docsInfo.getMenu(this.props.selectedVersion)} menuSubsectionsBySection={menuSubsectionsBySection} /> |