import { Navigate, Route, Routes } from "react-router-dom"; import LandingPage from "./pages/LandingPage/LandingPage.jsx"; import Login from "./pages/Login/Login.jsx"; import Register from "./pages/Register/Register.jsx"; import DashboardLayout from "./pages/Dashboard/DashboardLayout.jsx"; import ControlCenter from "./pages/Dashboard/pages/ControlCenter/ControlCenter.jsx"; import Training from "./pages/Dashboard/pages/Training/Training.jsx"; import TrainingTracking from "./pages/Dashboard/pages/Training/TrainingTracking.jsx"; import NewTrainingSession from "./pages/Dashboard/pages/Training/NewTrainingSession.jsx"; import Weight from "./pages/Dashboard/pages/Weight/Weight.jsx"; import WeightTracking from "./pages/Dashboard/pages/Weight/WeightTracking.jsx"; import NewWeightIntake from "./pages/Dashboard/pages/Weight/NewWeightIntake.jsx"; import Finance from "./pages/Dashboard/pages/Finance/Finance.jsx"; import FinanceTracking from "./pages/Dashboard/pages/Finance/FinanceTracking.jsx"; import NewIncome from "./pages/Dashboard/pages/Finance/NewIncome.jsx"; import Investing from "./pages/Dashboard/pages/Investing/Investing.jsx"; import InvestingTracking from "./pages/Dashboard/pages/Investing/InvestingTracking.jsx"; import NewInvestment from "./pages/Dashboard/pages/Investing/NewInvestment.jsx"; import Discipline from "./pages/Dashboard/pages/Discipline/Discipline.jsx"; import DisciplineTracking from "./pages/Dashboard/pages/Discipline/DisciplineTracking.jsx"; import CustomCategoryKanban from "./pages/Dashboard/pages/CustomCategory/CustomCategoryKanban.jsx"; function RequireAuth({ children }) { const token = localStorage.getItem("authToken"); if (!token) return ; return children; } function App() { return (
} /> } /> } /> } > } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } />
); } export default App;