Skip to content

Commit 3a33267

Browse files
Merge pull request #44 from Typext/feature/routes-adjusts
feat(routes): adjusts in routes
2 parents b14999b + c6eadde commit 3a33267

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/routes.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
import React from 'react';
22
import { Switch, BrowserRouter } from 'react-router-dom';
33

4-
import { getMode } from 'services/api';
5-
64
import Route from 'components/Route';
75

86
import { useAuth } from 'contexts/auth';
97

108
import Recovery from 'pages/Recovery';
119
import UserUpdate from 'pages/UserUpdate';
12-
import LandingPage from 'pages/LandingPage';
1310
import ResetPassword from 'pages/ResetPassword';
1411
import Register from 'pages/Register';
1512
import Home from 'pages/Home';
@@ -20,14 +17,13 @@ import NotFound from 'pages/NotFound';
2017
import Users from 'pages/Users';
2118

2219
export 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} />

0 commit comments

Comments
 (0)