diff options
author | Fabio Berger <me@fabioberger.com> | 2018-02-09 09:36:17 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-02-09 09:36:17 +0800 |
commit | ddf4437fb66fd5bb45572a330fdf383b973ce373 (patch) | |
tree | aa7ca5229fd299b9786856c7e9da92fa83669f3c /packages/website/ts/components/top_bar/top_bar.tsx | |
parent | 4153d5784954ea7a507011a954334166f9d71a3b (diff) | |
download | dexon-0x-contracts-ddf4437fb66fd5bb45572a330fdf383b973ce373.tar.gz dexon-0x-contracts-ddf4437fb66fd5bb45572a330fdf383b973ce373.tar.zst dexon-0x-contracts-ddf4437fb66fd5bb45572a330fdf383b973ce373.zip |
Add blog to topBar and as a consequence support external links in topBar menu items
Diffstat (limited to 'packages/website/ts/components/top_bar/top_bar.tsx')
-rw-r--r-- | packages/website/ts/components/top_bar/top_bar.tsx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/website/ts/components/top_bar/top_bar.tsx b/packages/website/ts/components/top_bar/top_bar.tsx index 1a0691e83..b1367be4f 100644 --- a/packages/website/ts/components/top_bar/top_bar.tsx +++ b/packages/website/ts/components/top_bar/top_bar.tsx @@ -169,12 +169,21 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> { path={`${WebsitePaths.Wiki}`} style={styles.menuItem} isNightVersion={isNightVersion} + isExternal={false} + /> + <TopBarMenuItem + title="Blog" + path={constants.URL_BLOG} + style={styles.menuItem} + isNightVersion={isNightVersion} + isExternal={true} /> <TopBarMenuItem title="About" path={`${WebsitePaths.About}`} style={styles.menuItem} isNightVersion={isNightVersion} + isExternal={false} /> <TopBarMenuItem title="Portal DApp" @@ -183,6 +192,7 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> { style={styles.menuItem} className={`${isFullWidthPage && 'md-hide'}`} isNightVersion={isNightVersion} + isExternal={false} /> </div> </div> |