aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-16 21:35:55 +0800
committerFabio Berger <me@fabioberger.com>2018-10-16 21:35:55 +0800
commit13f8801e08bc88c584cbc8cd9aba1e78773d9a8c (patch)
tree89d003f954dd692745ab975f3d7b87e6c6aa514d /packages
parentad235912d7c7fc618d7adf6c8568d723da812d66 (diff)
downloaddexon-sol-tools-13f8801e08bc88c584cbc8cd9aba1e78773d9a8c.tar
dexon-sol-tools-13f8801e08bc88c584cbc8cd9aba1e78773d9a8c.tar.gz
dexon-sol-tools-13f8801e08bc88c584cbc8cd9aba1e78773d9a8c.tar.bz2
dexon-sol-tools-13f8801e08bc88c584cbc8cd9aba1e78773d9a8c.tar.lz
dexon-sol-tools-13f8801e08bc88c584cbc8cd9aba1e78773d9a8c.tar.xz
dexon-sol-tools-13f8801e08bc88c584cbc8cd9aba1e78773d9a8c.tar.zst
dexon-sol-tools-13f8801e08bc88c584cbc8cd9aba1e78773d9a8c.zip
chore: remove wiki from main website topBar
Diffstat (limited to 'packages')
-rw-r--r--packages/website/ts/components/top_bar/top_bar.tsx33
1 files changed, 1 insertions, 32 deletions
diff --git a/packages/website/ts/components/top_bar/top_bar.tsx b/packages/website/ts/components/top_bar/top_bar.tsx
index f7043dca2..eb1854f50 100644
--- a/packages/website/ts/components/top_bar/top_bar.tsx
+++ b/packages/website/ts/components/top_bar/top_bar.tsx
@@ -144,12 +144,6 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> {
menuIconStyle={menuIconStyle}
/>
<TopBarMenuItem
- title={this.props.translate.get(Key.Wiki, Deco.Cap)}
- path={WebsitePaths.Wiki}
- style={styles.menuItem}
- isNightVersion={isNightVersion}
- />
- <TopBarMenuItem
title={this.props.translate.get(Key.Blog, Deco.Cap)}
path={constants.URL_BLOG}
style={styles.menuItem}
@@ -231,7 +225,6 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> {
onRequestChange={this._onMenuButtonClick.bind(this)}
>
<div className="clearfix">
- {this._renderWiki()}
<div className="pl1 py1 mt3" style={{ backgroundColor: colors.lightGrey }}>
{this.props.translate.get(Key.Website, Deco.Cap)}
</div>
@@ -241,9 +234,6 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> {
<Link to={WebsitePaths.Docs}>
<MenuItem className="py2">{this.props.translate.get(Key.Documentation, Deco.Cap)}</MenuItem>
</Link>
- <Link to={WebsitePaths.Wiki}>
- <MenuItem className="py2">{this.props.translate.get(Key.Wiki, Deco.Cap)}</MenuItem>
- </Link>
{!this._isViewingPortal() && (
<Link to={WebsitePaths.Portal}>
<MenuItem className="py2">
@@ -272,21 +262,6 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> {
</Drawer>
);
}
- private _renderWiki(): React.ReactNode {
- if (!this._isViewingWiki()) {
- return undefined;
- }
-
- return (
- <div className="lg-hide md-hide" onClick={this._onMenuButtonClick.bind(this)}>
- <NestedSidebarMenu
- sectionNameToLinks={this.props.sectionNameToLinks}
- sidebarHeader={this.props.sidebarHeader}
- shouldDisplaySectionHeaders={false}
- />
- </div>
- );
- }
private _onMenuButtonClick(): void {
this.setState({
isDrawerOpen: !this.state.isDrawerOpen,
@@ -298,13 +273,7 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> {
private _isViewingFAQ(): boolean {
return _.includes(this.props.location.pathname, WebsitePaths.FAQ);
}
- private _doesUrlInclude(aPath: string): boolean {
- return _.includes(this.props.location.pathname, aPath);
- }
- private _isViewingWiki(): boolean {
- return _.includes(this.props.location.pathname, WebsitePaths.Wiki);
- }
private _shouldDisplayBottomBar(): boolean {
- return this._isViewingWiki() || this._isViewingFAQ() || this._isViewingPortal();
+ return this._isViewingFAQ() || this._isViewingPortal();
}
} // tslint:disable:max-file-line-count