feat(dashboard, js-sdk): shipping option type mngmt dashboard (#13208)
* chore(types, api): support shipping option type api endpoints * core flows * api * typos * compiler errors * integration tests * remove metadata * changeset * modify test * upsert * change remote query * minor to patch * description optional * chore(dashboard, js-sdk): shipping option type management on admin dashboard * description optional * woops my bad * my bad again * create and edit * prettier * build code from label * remove metadata route * remove some translation text that is not used * remove unsued files * changeset * adapt test * fix test * suggestion --------- Co-authored-by: william bouchard <williambouchard@williams-MacBook-Pro.local>
This commit is contained in:
@@ -1369,6 +1369,59 @@ export function getRouteMap({
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "shipping-option-types",
|
||||
errorElement: <ErrorBoundary />,
|
||||
element: <Outlet />,
|
||||
handle: {
|
||||
breadcrumb: () => t("shippingOptionTypes.domain"),
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "",
|
||||
lazy: () =>
|
||||
import(
|
||||
"../../routes/shipping-option-types/shipping-option-type-list"
|
||||
),
|
||||
children: [
|
||||
{
|
||||
path: "create",
|
||||
lazy: () =>
|
||||
import(
|
||||
"../../routes/shipping-option-types/shipping-option-type-create"
|
||||
),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: ":id",
|
||||
lazy: async () => {
|
||||
const { Component, Breadcrumb, loader } = await import(
|
||||
"../../routes/shipping-option-types/shipping-option-type-detail"
|
||||
)
|
||||
|
||||
return {
|
||||
Component,
|
||||
loader,
|
||||
handle: {
|
||||
breadcrumb: (
|
||||
match: UIMatch<HttpTypes.AdminShippingOptionTypeResponse>
|
||||
) => <Breadcrumb {...match} />,
|
||||
},
|
||||
}
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "edit",
|
||||
lazy: () =>
|
||||
import(
|
||||
"../../routes/shipping-option-types/shipping-option-type-edit"
|
||||
),
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "product-types",
|
||||
errorElement: <ErrorBoundary />,
|
||||
|
||||
Reference in New Issue
Block a user