aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/pages/wiki
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/pages/wiki
parenta3c31f4f4a4c1c6a79f3915753a5197988253f28 (diff)
downloaddexon-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')
-rw-r--r--packages/website/ts/pages/wiki/wiki.tsx4
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>