aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-19 05:56:53 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-19 05:56:53 +0800
commitf097259266bebddca7d21a225e760d708f96ff82 (patch)
tree46ab133eeea75aeb0c2fa4652b106cdfc1466b89
parent67521da5c1dcb39d6f0349e67eb05b17c3771a71 (diff)
downloaddexon-sol-tools-f097259266bebddca7d21a225e760d708f96ff82.tar
dexon-sol-tools-f097259266bebddca7d21a225e760d708f96ff82.tar.gz
dexon-sol-tools-f097259266bebddca7d21a225e760d708f96ff82.tar.bz2
dexon-sol-tools-f097259266bebddca7d21a225e760d708f96ff82.tar.lz
dexon-sol-tools-f097259266bebddca7d21a225e760d708f96ff82.tar.xz
dexon-sol-tools-f097259266bebddca7d21a225e760d708f96ff82.tar.zst
dexon-sol-tools-f097259266bebddca7d21a225e760d708f96ff82.zip
Removing unused imports
-rw-r--r--packages/website/ts/@next/components/footer.tsx1
-rw-r--r--packages/website/ts/@next/pages/market_maker.tsx8
-rw-r--r--packages/website/ts/index.tsx29
3 files changed, 14 insertions, 24 deletions
diff --git a/packages/website/ts/@next/components/footer.tsx b/packages/website/ts/@next/components/footer.tsx
index fedae5a1b..b30a0cc5e 100644
--- a/packages/website/ts/@next/components/footer.tsx
+++ b/packages/website/ts/@next/components/footer.tsx
@@ -2,7 +2,6 @@ import { Link as SmartLink } from '@0x/react-shared';
import * as _ from 'lodash';
import * as React from 'react';
import MediaQuery from 'react-responsive';
-import { Link as ReactRouterLink } from 'react-router-dom';
import styled from 'styled-components';
import { Logo } from 'ts/@next/components/logo';
diff --git a/packages/website/ts/@next/pages/market_maker.tsx b/packages/website/ts/@next/pages/market_maker.tsx
index b4b5a30c9..e2d3c75c4 100644
--- a/packages/website/ts/@next/pages/market_maker.tsx
+++ b/packages/website/ts/@next/pages/market_maker.tsx
@@ -1,19 +1,13 @@
import * as _ from 'lodash';
import * as React from 'react';
-import { colors } from 'ts/style/colors';
-
import { Banner } from 'ts/@next/components/banner';
import { Button } from 'ts/@next/components/button';
import { Definition } from 'ts/@next/components/definition';
import { Hero } from 'ts/@next/components/hero';
-import { Icon } from 'ts/@next/components/icon';
-import { SiteWrap } from 'ts/@next/components/siteWrap';
-
import { ModalContact } from 'ts/@next/components/modals/modal_contact';
import { Section } from 'ts/@next/components/newLayout';
-
-import { WebsitePaths } from 'ts/types';
+import { SiteWrap } from 'ts/@next/components/siteWrap';
const offersData = [
{
diff --git a/packages/website/ts/index.tsx b/packages/website/ts/index.tsx
index abd8bc2ef..3f0c1c28c 100644
--- a/packages/website/ts/index.tsx
+++ b/packages/website/ts/index.tsx
@@ -4,13 +4,8 @@ import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { BrowserRouter as Router, Redirect, Route, Switch } from 'react-router-dom';
import { MetaTags } from 'ts/components/meta_tags';
-import { About } from 'ts/containers/about';
import { DocsHome } from 'ts/containers/docs_home';
import { FAQ } from 'ts/containers/faq';
-import { Instant } from 'ts/containers/instant';
-import { Jobs } from 'ts/containers/jobs';
-import { Landing } from 'ts/containers/landing'; // Note(ez): When we're done we omit all old site imports
-import { LaunchKit } from 'ts/containers/launch_kit';
import { NotFound } from 'ts/containers/not_found';
import { Wiki } from 'ts/containers/wiki';
import { createLazyComponent } from 'ts/lazy_component';
@@ -25,12 +20,10 @@ import { NextAboutJobs } from 'ts/@next/pages/about/jobs';
import { NextAboutMission } from 'ts/@next/pages/about/mission';
import { NextAboutPress } from 'ts/@next/pages/about/press';
import { NextAboutTeam } from 'ts/@next/pages/about/team';
-import { NextCommunity } from 'ts/@next/pages/community';
import { NextEcosystem } from 'ts/@next/pages/ecosystem';
import { Next0xInstant } from 'ts/@next/pages/instant';
import { NextLanding } from 'ts/@next/pages/landing';
import { NextLaunchKit } from 'ts/@next/pages/launch_kit';
-import { NextMarketMaker } from 'ts/@next/pages/market_maker';
import { NextWhy } from 'ts/@next/pages/why';
// Check if we've introduced an update that requires us to clear the tradeHistory local storage entries
@@ -104,15 +97,19 @@ render(
<div>
<Switch>
{/* Next (new site) routes */}
- <Route exact path="/" component={NextLanding as any} />
- <Route exact path={WebsitePaths.Why} component={NextWhy as any} />
- <Route exact path={WebsitePaths.Instant} component={Next0xInstant as any} />
- <Route exact path={WebsitePaths.LaunchKit} component={NextLaunchKit as any} />
- <Route exact path={WebsitePaths.Ecosystem} component={NextEcosystem as any} />
- <Route exact path={WebsitePaths.AboutMission} component={NextAboutMission as any} />
- <Route exact path={WebsitePaths.AboutTeam} component={NextAboutTeam as any} />
- <Route exact path={WebsitePaths.AboutPress} component={NextAboutPress as any} />
- <Route exact path={WebsitePaths.AboutJobs} component={NextAboutJobs as any} />
+ <Route exact={true} path="/" component={NextLanding as any} />
+ <Route exact={true} path={WebsitePaths.Why} component={NextWhy as any} />
+ <Route exact={true} path={WebsitePaths.Instant} component={Next0xInstant as any} />
+ <Route exact={true} path={WebsitePaths.LaunchKit} component={NextLaunchKit as any} />
+ <Route exact={true} path={WebsitePaths.Ecosystem} component={NextEcosystem as any} />
+ <Route
+ exact={true}
+ path={WebsitePaths.AboutMission}
+ component={NextAboutMission as any}
+ />
+ <Route exact={true} path={WebsitePaths.AboutTeam} component={NextAboutTeam as any} />
+ <Route exact={true} path={WebsitePaths.AboutPress} component={NextAboutPress as any} />
+ <Route exact={true} path={WebsitePaths.AboutJobs} component={NextAboutJobs as any} />
{/*
Note(ez): We remove/replace all old routes with next routes
once we're ready to put a ring on it. for now let's keep em there for reference