From 21fce873df3acf48ead48d9585dec471dd11ae77 Mon Sep 17 00:00:00 2001 From: ghalestrilo Date: Wed, 19 Aug 2020 18:13:05 -0300 Subject: [PATCH] :construction: update routes.jsx to include mobile routes --- client/routes.jsx | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/client/routes.jsx b/client/routes.jsx index ae1876d4..28880c76 100644 --- a/client/routes.jsx +++ b/client/routes.jsx @@ -37,7 +37,7 @@ const mobileFirst = (MobileComponent, Fallback) => props => ( // TODO: This short-circuit seems unnecessary - using the mobile navigator (future) should prevent this from being called const onRouteChange = (store) => { const path = window.location.pathname; - if (path.includes('/mobile/preview')) return; + if (path.includes('preview')) return; store.dispatch(stopSketch()); }; @@ -57,28 +57,24 @@ const routes = store => ( - - - - - - - - + + + + + + + + + + + - - - - - - - - - - + {/* Mobile-only Routes */} + + );