import "./App.css"; import { Route, Routes, useLocation } from "react-router-dom"; import TestAuth from "./components/testAuth"; import LoginPage from "./components/authentication/LoginPage"; import SignUpPage from "./components/authentication/SignUpPage"; import NavBar from "./components/navigations/Navbar"; import Home from "./components/Home"; import Calendar from "./components/calendar/calendar"; import KanbanPage from "./components/kanbanBoard/kanbanPage"; import IconSideNav from "./components/navigations/IconSideNav"; import Eisenhower from "./components/eisenhowerMatrix/Eisenhower"; import PrivateRoute from "./PrivateRoute"; import ProfileUpdatePage from "./components/profilePage"; import Dashboard from "./components/dashboard/dashboard"; const App = () => { const location = useLocation(); const prevention = ["/login", "/signup"]; const isLoginPageOrSignUpPage = prevention.some(_ => location.pathname.includes(_)); return (