feat(dashboard): move shipping profile to locations (#7777)
This commit is contained in:
@@ -747,6 +747,48 @@ export const RouteMap: RouteObject[] = [
|
||||
path: "create",
|
||||
lazy: () => import("../../routes/locations/location-create"),
|
||||
},
|
||||
{
|
||||
path: "shipping-profiles",
|
||||
element: <Outlet />,
|
||||
handle: {
|
||||
crumb: () => "Shipping Profiles",
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "",
|
||||
lazy: () =>
|
||||
import(
|
||||
"../../routes/shipping-profiles/shipping-profiles-list"
|
||||
),
|
||||
children: [
|
||||
{
|
||||
path: "create",
|
||||
lazy: () =>
|
||||
import(
|
||||
"../../routes/shipping-profiles/shipping-profile-create"
|
||||
),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: ":id",
|
||||
handle: {
|
||||
crumb: (data) => data.shipping_profile.name,
|
||||
},
|
||||
lazy: () =>
|
||||
import(
|
||||
"../../routes/shipping-profiles/shipping-profile-detail"
|
||||
),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "shipping-option-types",
|
||||
element: <Outlet />,
|
||||
handle: {
|
||||
crumb: () => "Shipping Option Types",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: ":location_id",
|
||||
lazy: () => import("../../routes/locations/location-detail"),
|
||||
@@ -900,38 +942,7 @@ export const RouteMap: RouteObject[] = [
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "shipping-profiles",
|
||||
element: <Outlet />,
|
||||
handle: {
|
||||
crumb: () => "Shipping Profiles",
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "",
|
||||
lazy: () =>
|
||||
import(
|
||||
"../../routes/shipping-profiles/shipping-profiles-list"
|
||||
),
|
||||
children: [
|
||||
{
|
||||
path: "create",
|
||||
lazy: () =>
|
||||
import(
|
||||
"../../routes/shipping-profiles/shipping-profile-create"
|
||||
),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: ":id",
|
||||
lazy: () =>
|
||||
import(
|
||||
"../../routes/shipping-profiles/shipping-profile-detail"
|
||||
),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
{
|
||||
path: "publishable-api-keys",
|
||||
element: <Outlet />,
|
||||
|
||||
Reference in New Issue
Block a user