diff options
author | Fabio Berger <me@fabioberger.com> | 2018-02-16 12:51:49 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-02-16 12:51:49 +0800 |
commit | 2778f96483ea21f5ec33f4222c19d7864eca2f1f (patch) | |
tree | 0f25fb213f5e3877c2f7bf44a156d4d18bb65d15 /packages/website/ts/pages/shared/nested_sidebar_menu.tsx | |
parent | 6cd4e7a17edbb474de6a82f0e665a1238b3724ba (diff) | |
download | dexon-0x-contracts-2778f96483ea21f5ec33f4222c19d7864eca2f1f.tar.gz dexon-0x-contracts-2778f96483ea21f5ec33f4222c19d7864eca2f1f.tar.zst dexon-0x-contracts-2778f96483ea21f5ec33f4222c19d7864eca2f1f.zip |
Re-design docs pages
Diffstat (limited to 'packages/website/ts/pages/shared/nested_sidebar_menu.tsx')
-rw-r--r-- | packages/website/ts/pages/shared/nested_sidebar_menu.tsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/website/ts/pages/shared/nested_sidebar_menu.tsx b/packages/website/ts/pages/shared/nested_sidebar_menu.tsx index fde6ef7ae..1b63f5203 100644 --- a/packages/website/ts/pages/shared/nested_sidebar_menu.tsx +++ b/packages/website/ts/pages/shared/nested_sidebar_menu.tsx @@ -36,6 +36,13 @@ const styles: Styles = { }, }; +const titleToIcon: { [title: string]: string } = { + '0x.js': 'zeroExJs.png', + '0x Connect': 'connect.png', + '0x Smart Contracts': 'contracts.png', + Wiki: 'wiki.png', +}; + export class NestedSidebarMenu extends React.Component<NestedSidebarMenuProps, NestedSidebarMenuState> { public static defaultProps: Partial<NestedSidebarMenuProps> = { shouldDisplaySectionHeaders: true, @@ -100,7 +107,7 @@ export class NestedSidebarMenu extends React.Component<NestedSidebarMenuProps, N </div> <div className="flex"> <div> - <img src="/images/book.png" width="31" /> + <img src={`/images/doc_icons/${titleToIcon[this.props.title]}`} width="24" /> </div> <div className="pl1" style={{ fontWeight: 600, fontSize: 20, lineHeight: 1 }}> {this.props.title} |