This commit is contained in:
2026-03-18 11:24:59 -05:00
parent 02e14319ac
commit f85563ce99
17 changed files with 1578 additions and 2 deletions
+7
View File
@@ -101,6 +101,9 @@ const ShipmentDetailPage = React.lazy(() =>
const ShipmentFormPage = React.lazy(() =>
import("./modules/shipping/ShipmentFormPage").then((module) => ({ default: module.ShipmentFormPage }))
);
const FinancePage = React.lazy(() =>
import("./modules/finance/FinancePage").then((module) => ({ default: module.FinancePage }))
);
const WorkbenchPage = React.lazy(() =>
import("./modules/workbench/WorkbenchPage").then((module) => ({ default: module.WorkbenchPage }))
);
@@ -201,6 +204,10 @@ const router = createBrowserRouter([
{ path: "/shipping/shipments/:shipmentId", element: lazyElement(<ShipmentDetailPage />) },
],
},
{
element: <ProtectedRoute requiredPermissions={[permissions.financeRead]} />,
children: [{ path: "/finance", element: lazyElement(<FinancePage />) }],
},
{
element: <ProtectedRoute requiredPermissions={[permissions.crmWrite]} />,
children: [