diff --git a/src/App.jsx b/src/App.jsx
index 0857c7a..046c32d 100755
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -1,34 +1,48 @@
+import { lazy, Suspense } from 'react';
import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom';
import { AuthProvider } from './context/AuthContext';
import ProtectedRoute from './components/ProtectedRoute';
+import PageLoader from './components/PageLoader';
import Login from './pages/Login';
+import PayInvoice from './pages/PayInvoice';
-import Dashboard from './pages/team/Dashboard';
-import Companies from './pages/team/Companies';
-import CompanyDetail from './pages/team/CompanyDetail';
-import ProjectDetail from './pages/team/ProjectDetail';
-import TaskDetail from './pages/team/TaskDetail';
-import Requests from './pages/team/Requests';
-import Invoices from './pages/team/Invoices';
-import CreateInvoice from './pages/team/CreateInvoice';
-import InvoiceDetail from './pages/team/InvoiceDetail';
-import BrandBook from './pages/team/BrandBook';
-
-import Settings from './pages/Settings';
-import ClientDashboard from './pages/client/ClientDashboard';
-import MyCompany from './pages/client/MyCompany';
-import MyRequests from './pages/client/MyRequests';
-import MyProjects from './pages/client/MyProjects';
-import MyProjectDetail from './pages/client/MyProjectDetail';
-import MyInvoices from './pages/client/MyInvoices';
-import RequestDetail from './pages/client/RequestDetail';
-import NewRequest from './pages/client/NewRequest';
+const Settings = lazy(() => import('./pages/Settings'));
+const Dashboard = lazy(() => import('./pages/team/Dashboard'));
+const Companies = lazy(() => import('./pages/team/Companies'));
+const CompanyDetail = lazy(() => import('./pages/team/CompanyDetail'));
+const ProjectDetail = lazy(() => import('./pages/team/ProjectDetail'));
+const Requests = lazy(() => import('./pages/team/Requests'));
+const Invoices = lazy(() => import('./pages/team/Invoices'));
+const MeetingNotes = lazy(() => import('./pages/team/MeetingNotes'));
+const TaskDetail = lazy(() => import('./pages/team/TaskDetail'));
+const CreateInvoice = lazy(() => import('./pages/team/CreateInvoice'));
+const CreateSubcontractorPO = lazy(() => import('./pages/team/CreateSubcontractorPO'));
+const InvoiceDetail = lazy(() => import('./pages/team/InvoiceDetail'));
+const SubcontractorPODetail = lazy(() => import('./pages/team/SubcontractorPODetail'));
+const SurveyMaker = lazy(() => import('./pages/team/SurveyMaker'));
+const BrandBook = lazy(() => import('./pages/team/BrandBook'));
+const Converters = lazy(() => import('./pages/team/Converters'));
+const ServerStatus = lazy(() => import('./pages/team/ServerStatus'));
+const FileSharing = lazy(() => import('./pages/team/FileSharing'));
+const FourgePasswords = lazy(() => import('./pages/team/FourgePasswords'));
+const ExternalMyRequests = lazy(() => import('./pages/external/MyRequests'));
+const MyPurchaseOrders = lazy(() => import('./pages/external/MyPurchaseOrders'));
+const ClientDashboard = lazy(() => import('./pages/client/ClientDashboard'));
+const MyCompany = lazy(() => import('./pages/client/MyCompany'));
+const MyRequests = lazy(() => import('./pages/client/MyRequests'));
+const MyProjects = lazy(() => import('./pages/client/MyProjects'));
+const MyProjectDetail = lazy(() => import('./pages/client/MyProjectDetail'));
+const MyInvoices = lazy(() => import('./pages/client/MyInvoices'));
+const RequestDetail = lazy(() => import('./pages/client/RequestDetail'));
+const NewRequest = lazy(() => import('./pages/client/NewRequest'));
+const NewProject = lazy(() => import('./pages/client/NewProject'));
export default function App() {
return (
Submit a request and a project will be created automatically.
- + New Project + + New Project+ Your account hasn't been linked to a company yet. Please contact the Fourge team to get set up. +
+