feat(dashboard): move shipping profile to locations (#7777)

This commit is contained in:
Frane Polić
2024-06-20 06:47:40 +00:00
committed by GitHub
parent 48963f55ef
commit 79a8f0ef2c
10 changed files with 189 additions and 62 deletions
@@ -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 />,