From 9d7a9bd028a10669533848244b4b7b33c37e8bf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Thu, 27 Aug 2015 14:34:15 +0200 Subject: [PATCH] add router/navigation integration into whole project --- js/components/ascribe_app.js | 7 +++--- js/components/header.js | 7 ------ js/components/nav_routes_links.js | 7 ++++-- js/components/routes.js | 25 ------------------- js/components/whitelabel/prize/prize_app.js | 8 +++++- .../whitelabel/prize/prize_routes.js | 4 +-- .../whitelabel/wallet/wallet_routes.js | 14 +++++------ js/routes.js | 17 +++++++++---- 8 files changed, 37 insertions(+), 52 deletions(-) delete mode 100644 js/components/routes.js diff --git a/js/components/ascribe_app.js b/js/components/ascribe_app.js index b4a894a3..789399b0 100644 --- a/js/components/ascribe_app.js +++ b/js/components/ascribe_app.js @@ -6,15 +6,16 @@ import Header from '../components/header'; import Footer from '../components/footer'; import GlobalNotification from './global_notification'; -// let Link = Router.Link; -let RouteHandler = Router.RouteHandler; +import getRoutes from '../routes'; +let RouteHandler = Router.RouteHandler; + let AscribeApp = React.createClass({ render() { return (
-
+