From e744e4cd989bd3ae1070c59f7baa8097f18b8b06 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Fri, 22 Dec 2017 15:05:32 +0100 Subject: Apply prettier config --- packages/website/ts/components/footer.tsx | 87 +++++++++++++------------------ 1 file changed, 36 insertions(+), 51 deletions(-) (limited to 'packages/website/ts/components/footer.tsx') diff --git a/packages/website/ts/components/footer.tsx b/packages/website/ts/components/footer.tsx index 4b9942276..3346f2545 100644 --- a/packages/website/ts/components/footer.tsx +++ b/packages/website/ts/components/footer.tsx @@ -1,11 +1,9 @@ import * as _ from 'lodash'; import * as React from 'react'; -import { - Link, -} from 'react-router-dom'; -import {WebsitePaths} from 'ts/types'; -import {colors} from 'ts/utils/colors'; -import {constants} from 'ts/utils/constants'; +import { Link } from 'react-router-dom'; +import { WebsitePaths } from 'ts/types'; +import { colors } from 'ts/utils/colors'; +import { constants } from 'ts/utils/constants'; interface MenuItemsBySection { [sectionName: string]: FooterMenuItem[]; @@ -102,11 +100,11 @@ const linkStyle = { cursor: 'pointer', }; -const titleToIcon: {[title: string]: string} = { +const titleToIcon: { [title: string]: string } = { 'Rocket.chat': 'rocketchat.png', - 'Blog': 'medium.png', - 'Twitter': 'twitter.png', - 'Reddit': 'reddit.png', + Blog: 'medium.png', + Twitter: 'twitter.png', + Reddit: 'reddit.png', }; export interface FooterProps {} @@ -116,15 +114,20 @@ interface FooterState {} export class Footer extends React.Component { public render() { return ( -
-
+
+
-
+
© ZeroEx, Intl.
@@ -156,53 +159,38 @@ export class Footer extends React.Component { } private _renderIcon(fileName: string) { return ( -
- +
+
); } private _renderMenuItem(item: FooterMenuItem) { const iconIfExists = titleToIcon[item.title]; return ( -
- {item.isExternal ? - - {!_.isUndefined(iconIfExists) ? -
+ + ) : ( item.title - } - : - + )} + + ) : ( +
- {!_.isUndefined(iconIfExists) && -
- {this._renderIcon(iconIfExists)} -
- } + {!_.isUndefined(iconIfExists) && ( +
{this._renderIcon(iconIfExists)}
+ )} {item.title}
- } + )}
); } @@ -215,10 +203,7 @@ export class Footer extends React.Component { fontSize: 13, }; return ( -
+
{title}
); -- cgit v1.2.3