Ignore:
Timestamp:
02/10/26 18:31:21 (5 months ago)
Author:
Andrej <asumanovski@…>
Branches:
master
Children:
6fa5831
Parents:
ff01f66
Message:

Made investing tab and adding assets, starting training tracking and adding training sessions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • frontend/src/App.jsx

    rff01f66 r8c01a1f  
    44import Login from "./pages/Login/Login.jsx";
    55import Register from "./pages/Register/Register.jsx";
    6 import Dashboard from "./pages/Dashboard.jsx";
     6import DashboardLayout from "./pages/Dashboard/DashboardLayout.jsx";
     7import ControlCenter from "./pages/Dashboard/pages/ControlCenter/ControlCenter.jsx";
     8import Training from "./pages/Dashboard/pages/Training/Training.jsx";
     9import TrainingTracking from "./pages/Dashboard/pages/Training/TrainingTracking.jsx";
     10import NewTrainingSession from "./pages/Dashboard/pages/Training/NewTrainingSession.jsx";
     11import Weight from "./pages/Dashboard/pages/Weight/Weight.jsx";
     12import Finance from "./pages/Dashboard/pages/Finance/Finance.jsx";
     13import Investing from "./pages/Dashboard/pages/Investing/Investing.jsx";
     14import InvestingTracking from "./pages/Dashboard/pages/Investing/InvestingTracking.jsx";
     15import NewInvestment from "./pages/Dashboard/pages/Investing/NewInvestment.jsx";
     16import Discipline from "./pages/Dashboard/pages/Discipline/Discipline.jsx";
    717
    818function RequireAuth({ children }) {
     
    2333          element={
    2434            <RequireAuth>
    25               <Dashboard />
     35              <DashboardLayout />
    2636            </RequireAuth>
    2737          }
    28         />
     38        >
     39          <Route index element={<Navigate to="control-center" replace />} />
     40          <Route path="control-center" element={<ControlCenter />} />
     41          <Route path="training" element={<Training />} />
     42          <Route path="training/tracking" element={<TrainingTracking />} />
     43          <Route
     44            path="training/sessions/new"
     45            element={<NewTrainingSession />}
     46          />
     47          <Route path="weight" element={<Weight />} />
     48          <Route path="finance" element={<Finance />} />
     49          <Route path="investing" element={<Investing />} />
     50          <Route path="investing/tracking" element={<InvestingTracking />} />
     51          <Route path="investing/assets/new" element={<NewInvestment />} />
     52          <Route path="discipline" element={<Discipline />} />
     53        </Route>
    2954        <Route path="*" element={<Navigate to="/" replace />} />
    3055      </Routes>
Note: See TracChangeset for help on using the changeset viewer.