feat(dashboard,js-sdk,types,admin-shared): Add Product Types domain (#7732)

This commit is contained in:
Kasper Fabricius Kristensen
2024-06-17 16:50:55 +00:00
committed by GitHub
parent 70a72ce2df
commit 2d8d2c4255
53 changed files with 1045 additions and 62 deletions
@@ -848,6 +848,43 @@ export const RouteMap: RouteObject[] = [
},
],
},
{
path: "product-types",
element: <Outlet />,
handle: {
crumb: () => "Product Types",
},
children: [
{
path: "",
lazy: () =>
import("../../routes/product-types/product-type-list"),
children: [
{
path: "create",
lazy: () =>
import("../../routes/product-types/product-type-create"),
},
],
},
{
path: ":id",
lazy: () =>
import("../../routes/product-types/product-type-detail"),
handle: {
crumb: (data: HttpTypes.AdminProductTypeResponse) =>
data.product_type.value,
},
children: [
{
path: "edit",
lazy: () =>
import("../../routes/product-types/product-type-edit"),
},
],
},
],
},
{
path: "shipping-profiles",
element: <Outlet />,