Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const Operations = lazy(() => import("./pages/admin/Operations").then(m => ({ de
const Settings = lazy(() => import("./pages/admin/Settings").then(m => ({ default: m.Settings })));
const IntegrationsMarketplace = lazy(() => import("./pages/admin/IntegrationsMarketplace"));
const Shipments = lazy(() => import("./pages/admin/Shipments"));
const Batches = lazy(() => import("./pages/admin/Batches"));
const StepsTemplatesView = lazy(() => import("./pages/admin/StepsTemplatesView"));
const AnalyticsDashboard = lazy(() => import("./pages/admin/AnalyticsDashboard"));

Expand Down Expand Up @@ -620,6 +621,19 @@ function AppRoutes() {
}
/>

<Route
path="/admin/batches"
element={
<ProtectedRoute adminOnly>
<Layout>
<LazyRoute>
<Batches />
</LazyRoute>
</Layout>
</ProtectedRoute>
}
/>

{/* Analytics Routes */}
<Route
path="/admin/analytics"
Expand Down
6 changes: 6 additions & 0 deletions src/components/AdminLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ export default function AdminLayout({ children }: AdminLayoutProps) {
icon: Layers,
exact: true,
},
{
path: "/admin/batches",
label: t("navigation.batches"),
icon: Layers,
exact: true,
},
{
path: "/admin/assignments",
label: t("navigation.assignments"),
Expand Down
Loading
Loading