File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { Switch , BrowserRouter } from 'react-router-dom' ;
33
4- import { getMode } from 'services/api' ;
5-
64import Route from 'components/Route' ;
75
86import { useAuth } from 'contexts/auth' ;
97
108import Recovery from 'pages/Recovery' ;
119import UserUpdate from 'pages/UserUpdate' ;
12- import LandingPage from 'pages/LandingPage' ;
1310import ResetPassword from 'pages/ResetPassword' ;
1411import Register from 'pages/Register' ;
1512import Home from 'pages/Home' ;
@@ -20,14 +17,13 @@ import NotFound from 'pages/NotFound';
2017import Users from 'pages/Users' ;
2118
2219export default function Routes ( ) {
23- const isNotProduction = getMode ( ) ;
2420 const { user } = useAuth ( ) ;
2521 const userIsAdmin = user ?. type === 'Admin' ;
2622
2723 return (
2824 < BrowserRouter >
2925 < Switch >
30- { isNotProduction && < Route path = "/" exact component = { LandingPage } /> }
26+ < Route path = "/" exact component = { Login } />
3127 < Route path = "/user/update" isPrivate component = { UserUpdate } />
3228 < Route path = "/home" exact isPrivate component = { Home } />
3329 < Route path = "/minute" isPrivate component = { Minute } />
You can’t perform that action at this time.
0 commit comments