aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/top_bar/top_bar.tsx
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-20 20:26:04 +0800
committerFabio Berger <me@fabioberger.com>2018-03-20 20:26:04 +0800
commit72671c10148d304fec072d0c62bcc9788b967f55 (patch)
treef61a51be3f70aec87184f750361f44d1aea6a8dc /packages/website/ts/components/top_bar/top_bar.tsx
parenta3c31f4f4a4c1c6a79f3915753a5197988253f28 (diff)
downloaddexon-0x-contracts-72671c10148d304fec072d0c62bcc9788b967f55.tar.gz
dexon-0x-contracts-72671c10148d304fec072d0c62bcc9788b967f55.tar.zst
dexon-0x-contracts-72671c10148d304fec072d0c62bcc9788b967f55.zip
Refactor titleToIcon mapping to idToIcon and move to docPage
Diffstat (limited to 'packages/website/ts/components/top_bar/top_bar.tsx')
-rw-r--r--packages/website/ts/components/top_bar/top_bar.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/website/ts/components/top_bar/top_bar.tsx b/packages/website/ts/components/top_bar/top_bar.tsx
index 3a6ceed34..4b2e82119 100644
--- a/packages/website/ts/components/top_bar/top_bar.tsx
+++ b/packages/website/ts/components/top_bar/top_bar.tsx
@@ -39,6 +39,7 @@ interface TopBarProps {
style?: React.CSSProperties;
isNightVersion?: boolean;
onVersionSelected?: (semver: string) => void;
+ sidebarHeader?: React.ReactNode;
}
interface TopBarState {
@@ -393,7 +394,7 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> {
<NestedSidebarMenu
topLevelMenu={this.props.menu}
menuSubsectionsBySection={this.props.menuSubsectionsBySection}
- sidebarHeader={<SidebarHeader title={this.props.docsInfo.displayName} />}
+ sidebarHeader={this.props.sidebarHeader}
shouldDisplaySectionHeaders={false}
onMenuItemClick={this._onMenuButtonClick.bind(this)}
selectedVersion={this.props.docsVersion}
@@ -413,7 +414,7 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> {
<NestedSidebarMenu
topLevelMenu={this.props.menuSubsectionsBySection}
menuSubsectionsBySection={this.props.menuSubsectionsBySection}
- sidebarHeader={<SidebarHeader title="Wiki" />}
+ sidebarHeader={this.props.sidebarHeader}
shouldDisplaySectionHeaders={false}
onMenuItemClick={this._onMenuButtonClick.bind(this)}
/>