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/website/ts/components/top_bar | |
parent | 01e505a5f4b514d285eedc6456d819d0649032d4 (diff) | |
download | dexon-0x-contracts-f8b8a10b8f914d05edfbc57081a40dccc8f464de.tar dexon-0x-contracts-f8b8a10b8f914d05edfbc57081a40dccc8f464de.tar.gz dexon-0x-contracts-f8b8a10b8f914d05edfbc57081a40dccc8f464de.tar.bz2 dexon-0x-contracts-f8b8a10b8f914d05edfbc57081a40dccc8f464de.tar.lz dexon-0x-contracts-f8b8a10b8f914d05edfbc57081a40dccc8f464de.tar.xz dexon-0x-contracts-f8b8a10b8f914d05edfbc57081a40dccc8f464de.tar.zst dexon-0x-contracts-f8b8a10b8f914d05edfbc57081a40dccc8f464de.zip |
Make sidebar header configurable
Diffstat (limited to 'packages/website/ts/components/top_bar')
-rw-r--r-- | packages/website/ts/components/top_bar/top_bar.tsx | 5 |
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 0161da2d3..2d6f2b235 100644 --- a/packages/website/ts/components/top_bar/top_bar.tsx +++ b/packages/website/ts/components/top_bar/top_bar.tsx @@ -9,6 +9,7 @@ import { Link } from 'react-router-dom'; import ReactTooltip = require('react-tooltip'); import { Blockchain } from 'ts/blockchain'; import { PortalMenu } from 'ts/components/portal_menu'; +import { SidebarHeader } from 'ts/components/sidebar_header'; import { ProviderDisplay } from 'ts/components/top_bar/provider_display'; import { TopBarMenuItem } from 'ts/components/top_bar/top_bar_menu_item'; import { DropDown } from 'ts/components/ui/drop_down'; @@ -314,7 +315,7 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> { <NestedSidebarMenu topLevelMenu={this.props.menu} menuSubsectionsBySection={this.props.menuSubsectionsBySection} - title={this.props.docsInfo.displayName} + sidebarHeader={<SidebarHeader title={this.props.docsInfo.displayName} />} shouldDisplaySectionHeaders={false} onMenuItemClick={this._onMenuButtonClick.bind(this)} selectedVersion={this.props.docsVersion} @@ -333,7 +334,7 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> { <NestedSidebarMenu topLevelMenu={this.props.menuSubsectionsBySection} menuSubsectionsBySection={this.props.menuSubsectionsBySection} - title={this.props.translate.get(Key.Wiki, Deco.Cap)} + sidebarHeader={<SidebarHeader title="Wiki" />} shouldDisplaySectionHeaders={false} onMenuItemClick={this._onMenuButtonClick.bind(this)} /> |