From ab40e0b9c508231ed92bce4ab6e5efe7b922ee34 Mon Sep 17 00:00:00 2001 From: marcosMachadoMenendez Date: Sun, 17 Mar 2024 16:57:20 +0100 Subject: [PATCH] =?UTF-8?q?Ya=20se=20muestra=20el=20Navbar=20al=20iniciar?= =?UTF-8?q?=20sesi=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/src/components/ProtectedRoute.js | 3 ++- webapp/src/components/Routes.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/webapp/src/components/ProtectedRoute.js b/webapp/src/components/ProtectedRoute.js index 3a1be852..12148098 100644 --- a/webapp/src/components/ProtectedRoute.js +++ b/webapp/src/components/ProtectedRoute.js @@ -1,5 +1,6 @@ import { Navigate, Outlet } from "react-router-dom"; import { useAuth } from "./login/AuthProvider"; +import Navbar from "./Navbar"; export const ProtectedRoute = () => { const { token } = useAuth(); @@ -11,5 +12,5 @@ export const ProtectedRoute = () => { } // If authenticated, render the child routes - return ; + return
; }; \ No newline at end of file diff --git a/webapp/src/components/Routes.js b/webapp/src/components/Routes.js index 7e4e2880..c92a54dc 100644 --- a/webapp/src/components/Routes.js +++ b/webapp/src/components/Routes.js @@ -57,7 +57,7 @@ const Routes = () => { ]); // Provide the router configuration using RouterProvider - return + return ; };