From f6f441cbe658d7ba3a367691a0ad596d0a85b1ac Mon Sep 17 00:00:00 2001
From: Fred Carlsen <fred@sjelfull.no>
Date: Fri, 14 Dec 2018 23:03:51 +0100
Subject: Update routes

---
 packages/website/ts/index.tsx | 27 ++++++++++-----------------
 1 file changed, 10 insertions(+), 17 deletions(-)

(limited to 'packages/website/ts/index.tsx')

diff --git a/packages/website/ts/index.tsx b/packages/website/ts/index.tsx
index aa2deaf37..e9f629c09 100644
--- a/packages/website/ts/index.tsx
+++ b/packages/website/ts/index.tsx
@@ -101,32 +101,25 @@ render(
                     <Provider store={store}>
                         <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} />
                                 {/*
                                   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
                                 */}
-                                <Route exact={true} path="/" component={Landing as any} />
                                 <Redirect from="/otc" to={`${WebsitePaths.Portal}`} />
-                                <Route path={WebsitePaths.LaunchKit} component={LaunchKit as any} />
-                                <Route path={WebsitePaths.Instant} component={Instant as any} />
-                                <Route path={WebsitePaths.Careers} component={Jobs as any} />
                                 <Route path={WebsitePaths.Portal} component={LazyPortal} />
                                 <Route path={WebsitePaths.FAQ} component={FAQ as any} />
-                                <Route path={WebsitePaths.About} component={About as any} />
                                 <Route path={WebsitePaths.Wiki} component={Wiki as any} />
 
-
-                                {/* Next (new site) routes */}
-                                <Route exact path="/next" component={NextLanding as any} />
-                                <Route exact path="/next/why" component={NextWhy as any} />
-                                <Route exact path="/next/0x-instant" component={Next0xInstant as any} />
-                                <Route exact path="/next/launch-kit" component={NextLaunchKit as any} />
-                                <Route exact path="/next/ecosystem-program" component={NextEcosystem as any} />
-                                <Route exact path="/next/about/mission" component={NextAboutMission as any} />
-                                <Route exact path="/next/about/team" component={NextAboutTeam as any} />
-                                <Route exact path="/next/about/press" component={NextAboutPress as any} />
-                                <Route exact path="/next/about/jobs" component={NextAboutJobs as any} />
-
                                 <Route
                                     path={`${WebsitePaths.ZeroExJs}/:version?`}
                                     component={LazyZeroExJSDocumentation}
-- 
cgit v1.2.3

