import React, { useState } from "react"; import { BrowserRouter, Routes, Route } from "react-router-dom"; import Sidebar from "./components/Sidebar"; import Topbar from "./components/Topbar"; import Dashboard from "./pages/Dashboard"; // CONTACTS import ContactsList from "./pages/contacts/list/List"; import ContactFormPage from "./pages/contacts/form/ContactFormPage"; // ACCOUNTS import AccountList from "./pages/accounts/list/List"; import AccountFormPage from "./pages/accounts/form/AccountFormPage"; // EMPLOYEES import EmployeeList from "./pages/employees/list/List"; import EmployeeFormPage from "./pages/employees/form/EmployeeFormPage"; // LOCATIONS import LocationsList from "./pages/locations/list/List"; import LocationFormPage from "./pages/locations/form/LocationFormPage"; // WORK ORDERS import WorkOrdersList from "./pages/workorders/list/List"; import WorkOrderFormPage from "./pages/workorders/form/WorkOrderFormPage"; // FOLLOW UPS import FollowUpList from "./pages/followup/list/List"; import FollowUpFormPage from "./pages/followup/form/FollowUpFormPage"; // PM SCHEDULES import PMScheduleList from "./pages/PmSchedule/list/List"; import PMScheduleFormPage from "./pages/PmSchedule/form/PmScheduleFormPage"; export default function App() { const [navCollapsed, setNavCollapsed] = useState(false); return (
setNavCollapsed(v => !v)} />
} /> } /> {/* CONTACTS */} } /> } /> } /> {/* ACCOUNTS */} } /> } /> } /> {/* EMPLOYEES */} } /> } /> } /> {/* LOCATIONS */} } /> } /> } /> {/* WORK ORDERS */} } /> } /> } /> {/* FOLLOW UPS */} } /> } /> } /> {/* PM SCHEDULES */} } /> } /> } />
); }