diff options
author | Fabio Berger <me@fabioberger.com> | 2018-03-20 20:26:04 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-03-20 20:26:04 +0800 |
commit | 72671c10148d304fec072d0c62bcc9788b967f55 (patch) | |
tree | f61a51be3f70aec87184f750361f44d1aea6a8dc /packages/website/ts/pages/wiki/wiki.tsx | |
parent | a3c31f4f4a4c1c6a79f3915753a5197988253f28 (diff) | |
download | dexon-sol-tools-72671c10148d304fec072d0c62bcc9788b967f55.tar dexon-sol-tools-72671c10148d304fec072d0c62bcc9788b967f55.tar.gz dexon-sol-tools-72671c10148d304fec072d0c62bcc9788b967f55.tar.bz2 dexon-sol-tools-72671c10148d304fec072d0c62bcc9788b967f55.tar.lz dexon-sol-tools-72671c10148d304fec072d0c62bcc9788b967f55.tar.xz dexon-sol-tools-72671c10148d304fec072d0c62bcc9788b967f55.tar.zst dexon-sol-tools-72671c10148d304fec072d0c62bcc9788b967f55.zip |
Refactor titleToIcon mapping to idToIcon and move to docPage
Diffstat (limited to 'packages/website/ts/pages/wiki/wiki.tsx')
-rw-r--r-- | packages/website/ts/pages/wiki/wiki.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/website/ts/pages/wiki/wiki.tsx b/packages/website/ts/pages/wiki/wiki.tsx index e2dd3a68e..a8d70029c 100644 --- a/packages/website/ts/pages/wiki/wiki.tsx +++ b/packages/website/ts/pages/wiki/wiki.tsx @@ -88,6 +88,7 @@ export class Wiki extends React.Component<WikiProps, WikiState> { ...styles.mainContainers, overflow: this.state.isHoveringSidebar ? 'auto' : 'hidden', }; + const sidebarHeader = <SidebarHeader title="Wiki" iconUrl="wiki.png" />; return ( <div> <DocumentTitle title="0x Protocol Wiki" /> @@ -96,6 +97,7 @@ export class Wiki extends React.Component<WikiProps, WikiState> { location={this.props.location} menuSubsectionsBySection={menuSubsectionsBySection} translate={this.props.translate} + sidebarHeader={sidebarHeader} /> {_.isUndefined(this.state.articlesBySection) ? ( <div className="col col-12" style={mainContainersStyle}> @@ -134,7 +136,7 @@ export class Wiki extends React.Component<WikiProps, WikiState> { <NestedSidebarMenu topLevelMenu={menuSubsectionsBySection} menuSubsectionsBySection={menuSubsectionsBySection} - sidebarHeader={<SidebarHeader title="Wiki" />} + sidebarHeader={sidebarHeader} /> </div> </div> |