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 ; };