diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-15 22:19:19 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-15 22:19:19 +0800 |
commit | 2041e9945edf6f5255185de73c0dc332270e4bbb (patch) | |
tree | 2e8224bc00217b03887650116dc37f55440b4fdc /packages/website/ts/pages/landing | |
parent | 126048bac9f52871b841d9898cabe7cfd265ebb6 (diff) | |
download | dexon-sol-tools-2041e9945edf6f5255185de73c0dc332270e4bbb.tar dexon-sol-tools-2041e9945edf6f5255185de73c0dc332270e4bbb.tar.gz dexon-sol-tools-2041e9945edf6f5255185de73c0dc332270e4bbb.tar.bz2 dexon-sol-tools-2041e9945edf6f5255185de73c0dc332270e4bbb.tar.lz dexon-sol-tools-2041e9945edf6f5255185de73c0dc332270e4bbb.tar.xz dexon-sol-tools-2041e9945edf6f5255185de73c0dc332270e4bbb.tar.zst dexon-sol-tools-2041e9945edf6f5255185de73c0dc332270e4bbb.zip |
Fix website unused vars
Diffstat (limited to 'packages/website/ts/pages/landing')
-rw-r--r-- | packages/website/ts/pages/landing/landing.tsx | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/packages/website/ts/pages/landing/landing.tsx b/packages/website/ts/pages/landing/landing.tsx index f3c46b8c7..7992c7a6c 100644 --- a/packages/website/ts/pages/landing/landing.tsx +++ b/packages/website/ts/pages/landing/landing.tsx @@ -6,8 +6,7 @@ import DocumentTitle = require('react-document-title'); import {Link} from 'react-router-dom'; import {Footer} from 'ts/components/footer'; import {TopBar} from 'ts/components/top_bar'; -import {ScreenWidths, Styles, WebsitePaths} from 'ts/types'; -import {configs} from 'ts/utils/configs'; +import {ScreenWidths, WebsitePaths} from 'ts/types'; import {constants} from 'ts/utils/constants'; import {utils} from 'ts/utils/utils'; @@ -269,7 +268,7 @@ export class Landing extends React.Component<LandingProps, LandingState> { const isSmallScreen = this.state.screenWidth === ScreenWidths.SM; const isMediumScreen = this.state.screenWidth === ScreenWidths.MD; const projectList = _.map(projects, (project: Project, i: number) => { - const colWidth = isSmallScreen ? 3 : isMediumScreen ? 4 : 2 - (i % 2); + const colWidth = isSmallScreen ? 3 : (isMediumScreen ? 4 : 2 - (i % 2)); return ( <div key={`project-${project.logoFileName}`} @@ -470,11 +469,6 @@ export class Landing extends React.Component<LandingProps, LandingState> { } private renderBuildingBlocksSection() { const isSmallScreen = this.state.screenWidth === ScreenWidths.SM; - const underlineStyle: React.CSSProperties = { - height: isSmallScreen ? 18 : 23, - lineHeight: 'none', - borderBottom: '2px solid #979797', - }; const descriptionStyle: React.CSSProperties = { fontFamily: 'Roboto Mono', lineHeight: isSmallScreen ? 1.5 : 2, @@ -606,21 +600,6 @@ export class Landing extends React.Component<LandingProps, LandingState> { }); return assets; } - private renderLink(label: string, path: string, color: string, style?: React.CSSProperties) { - return ( - <div - style={{borderBottom: `1px solid ${color}`, paddingBottom: 1, height: 20, lineHeight: 1.7, ...style}} - > - <Link - to={path} - className="text-decoration-none" - style={{color, fontFamily: 'Roboto Mono'}} - > - {label} - </Link> - </div> - ); - } private renderInfoBoxes() { const isSmallScreen = this.state.screenWidth === ScreenWidths.SM; const boxStyle: React.CSSProperties = { @@ -676,7 +655,6 @@ export class Landing extends React.Component<LandingProps, LandingState> { } private renderUseCases() { const isSmallScreen = this.state.screenWidth === ScreenWidths.SM; - const isMediumScreen = this.state.screenWidth === ScreenWidths.MD; const useCases: UseCase[] = [ { |