diff --git a/cryptide_project/src/App.tsx b/cryptide_project/src/App.tsx index e025ef7..a895980 100644 --- a/cryptide_project/src/App.tsx +++ b/cryptide_project/src/App.tsx @@ -19,7 +19,7 @@ import InfoPage from './Pages/InfoPage'; import AppNavbar from './Components/NavBar'; /* nav */ -import { BrowserRouter, Route, Routes } from "react-router-dom"; +import { BrowserRouter, Route, Routes, useLocation } from "react-router-dom"; /* Style */ import './App.css'; @@ -47,6 +47,11 @@ function App() { setLocale(newLocale); }; + + //const location = useLocation(); + const hasNavbarVisible = ["/", "/login", "/signup", "/play", "/lobby", "/endgame"].includes(window.location.pathname); + + return ( //
//