no gantt
This commit is contained in:
+6
-3
@@ -101,8 +101,8 @@ const ShipmentDetailPage = React.lazy(() =>
|
||||
const ShipmentFormPage = React.lazy(() =>
|
||||
import("./modules/shipping/ShipmentFormPage").then((module) => ({ default: module.ShipmentFormPage }))
|
||||
);
|
||||
const GanttPage = React.lazy(() =>
|
||||
import("./modules/gantt/GanttPage").then((module) => ({ default: module.GanttPage }))
|
||||
const WorkbenchPage = React.lazy(() =>
|
||||
import("./modules/workbench/WorkbenchPage").then((module) => ({ default: module.WorkbenchPage }))
|
||||
);
|
||||
const LandingPage = React.lazy(() =>
|
||||
import("./modules/landing/LandingPage").then((module) => ({ default: module.LandingPage }))
|
||||
@@ -258,7 +258,10 @@ const router = createBrowserRouter([
|
||||
},
|
||||
{
|
||||
element: <ProtectedRoute requiredPermissions={[permissions.ganttRead]} />,
|
||||
children: [{ path: "/planning/gantt", element: lazyElement(<GanttPage />) }],
|
||||
children: [
|
||||
{ path: "/planning/workbench", element: lazyElement(<WorkbenchPage />) },
|
||||
{ path: "/planning/gantt", element: <Navigate to="/planning/workbench" replace /> },
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user