feat(dashboard): Admin UI regions v2 (#6943)

This commit is contained in:
Frane Polić
2024-04-06 17:41:54 +02:00
committed by GitHub
parent df0751f122
commit 58c68f6715
72 changed files with 475 additions and 1687 deletions
@@ -254,6 +254,43 @@ export const v2Routes: RouteObject[] = [
},
],
},
{
path: "regions",
element: <Outlet />,
handle: {
crumb: () => "Regions",
},
children: [
{
path: "",
lazy: () => import("../../v2-routes/regions/region-list"),
children: [
{
path: "create",
lazy: () => import("../../v2-routes/regions/region-create"),
},
],
},
{
path: ":id",
lazy: () => import("../../v2-routes/regions/region-detail"),
handle: {
crumb: (data: AdminRegionsRes) => data.region.name,
},
children: [
{
path: "edit",
lazy: () => import("../../v2-routes/regions/region-edit"),
},
{
path: "countries/add",
lazy: () =>
import("../../v2-routes/regions/region-add-countries"),
},
],
},
],
},
{
path: "store",
lazy: () => import("../../v2-routes/store/store-detail"),