diff options
author | Fabio Berger <me@fabioberger.com> | 2018-08-23 01:52:17 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-08-23 01:52:17 +0800 |
commit | b7c119b2aaaa2f3579ca4aeef198eca7f38f1216 (patch) | |
tree | 16956eb295a2b0a21fcab07b4e2377c2cd59d3c9 /packages/website/ts/components | |
parent | 3c2af2067f768bd3ffe233d9a7c2d0232db6868e (diff) | |
download | dexon-sol-tools-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.tar dexon-sol-tools-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.tar.gz dexon-sol-tools-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.tar.bz2 dexon-sol-tools-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.tar.lz dexon-sol-tools-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.tar.xz dexon-sol-tools-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.tar.zst dexon-sol-tools-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.zip |
Fix many linter errors that showed up upon upgrading tsutil
Diffstat (limited to 'packages/website/ts/components')
-rw-r--r-- | packages/website/ts/components/top_bar/top_bar.tsx | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/packages/website/ts/components/top_bar/top_bar.tsx b/packages/website/ts/components/top_bar/top_bar.tsx index 41b01c57b..e27a1fae2 100644 --- a/packages/website/ts/components/top_bar/top_bar.tsx +++ b/packages/website/ts/components/top_bar/top_bar.tsx @@ -1,10 +1,10 @@ import { DocsInfo, DocsMenu } from '@0xproject/react-docs'; import { colors, + constants as sharedConstants, MenuSubsectionsBySection, NestedSidebarMenu, Styles, - constants as sharedConstants, } from '@0xproject/react-shared'; import * as _ from 'lodash'; import Drawer from 'material-ui/Drawer'; @@ -378,13 +378,16 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> { </Link> {_.map(DOC_WEBSITE_PATHS_TO_KEY, (key, websitePath) => { if (!this._doesUrlInclude(websitePath)) { - <Link to={websitePath} className="text-decoration-none"> - <MenuItem className="py2"> - {this.props.translate.get(key, Deco.Cap)}{' '} - {this.props.translate.get(Key.Docs, Deco.Cap)} - </MenuItem> - </Link>; + return ( + <Link to={websitePath} className="text-decoration-none"> + <MenuItem className="py2"> + {this.props.translate.get(key, Deco.Cap)}{' '} + {this.props.translate.get(Key.Docs, Deco.Cap)} + </MenuItem> + </Link> + ); } + return null; })} {!this._isViewingPortal() && ( <Link to={`${WebsitePaths.Portal}`} className="text-decoration-none"> |