From c6eadde8fc00186807dc2b5298ce75ef8d278f98 Mon Sep 17 00:00:00 2001 From: leonardo messias Date: Sun, 18 Apr 2021 19:22:59 -0300 Subject: [PATCH] feat(routes): adjusts in routes --- src/routes.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/routes.tsx b/src/routes.tsx index fc2532f..0e1b2d8 100644 --- a/src/routes.tsx +++ b/src/routes.tsx @@ -1,15 +1,12 @@ import React from 'react'; import { Switch, BrowserRouter } from 'react-router-dom'; -import { getMode } from 'services/api'; - import Route from 'components/Route'; import { useAuth } from 'contexts/auth'; import Recovery from 'pages/Recovery'; import UserUpdate from 'pages/UserUpdate'; -import LandingPage from 'pages/LandingPage'; import ResetPassword from 'pages/ResetPassword'; import Register from 'pages/Register'; import Home from 'pages/Home'; @@ -20,14 +17,13 @@ import NotFound from 'pages/NotFound'; import Users from 'pages/Users'; export default function Routes() { - const isNotProduction = getMode(); const { user } = useAuth(); const userIsAdmin = user?.type === 'Admin'; return ( - {isNotProduction && } +