Browse Source

test connected routes

= 5 years ago
parent
commit
e10584aa72
2 changed files with 10 additions and 5 deletions
  1. 4 4
      src/router.js
  2. 6 1
      src/styles/base/_base.scss

+ 4 - 4
src/router.js

@@ -47,7 +47,7 @@ class Router extends React.Component {
                         <Route path={routes.HOME} exact component={homePage} />
                         <Route path={routes.HOME} exact component={homePage} />
 
 
                         {/* should be protected */}
                         {/* should be protected */}
-                        <Route path={routes.CREATE_TEST} exact component={createTestForm} /> 
+                        {/* <Route path={routes.CREATE_TEST} exact component={createTestForm} /> 
                         <Route path={routes.PROFILE} user={user} exact component={profilePage} />
                         <Route path={routes.PROFILE} user={user} exact component={profilePage} />
                         <Route path={routes.CATEGORIES} user={user} exact component={categoriesPage} />
                         <Route path={routes.CATEGORIES} user={user} exact component={categoriesPage} />
 
 
@@ -58,7 +58,7 @@ class Router extends React.Component {
                         <PrivateAdminRouter path={routes.CREATE_CATEGORY} user={user} exact component={null} />
                         <PrivateAdminRouter path={routes.CREATE_CATEGORY} user={user} exact component={null} />
                         <PrivateAdminRouter path={routes.DELETE_USER} user={user} exact component={null} />
                         <PrivateAdminRouter path={routes.DELETE_USER} user={user} exact component={null} />
 
 
-                        <Route component={notFound} />
+                        <Route component={notFound} /> */}
                     </Switch>
                     </Switch>
                 </Suspense>
                 </Suspense>
                 <Footer />
                 <Footer />
@@ -72,6 +72,6 @@ class Router extends React.Component {
 //         user: state.user
 //         user: state.user
 //     })
 //     })
 
 
-// export default connect()(Router)
+export default connect()(Router)
 
 
-export default Router;
+// export default Router;

+ 6 - 1
src/styles/base/_base.scss

@@ -31,4 +31,9 @@ code {
     font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
     font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
     monospace;
     monospace;
 }
 }
-  
+  
+@media screen and (max-width: 1200px) {
+    * {
+        transition: none;
+    }
+}