feat(dashboard,core,medusa,promotion): add campaigns UI (#7269)
* feat(dashboard,core,medusa,promotion): add campaigns UI * chore: add without campaign choice to promotion ui * chore: fix builds and types * chore: fix design issues * chore: address pr reviews
This commit is contained in:
@@ -209,6 +209,38 @@ export const RouteMap: RouteObject[] = [
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/campaigns",
|
||||
handle: { crumb: () => "Campaigns" },
|
||||
children: [
|
||||
{
|
||||
path: "",
|
||||
lazy: () => import("../../v2-routes/campaigns/campaign-list"),
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
path: "create",
|
||||
lazy: () => import("../../v2-routes/campaigns/campaign-create"),
|
||||
},
|
||||
{
|
||||
path: ":id",
|
||||
lazy: () => import("../../v2-routes/campaigns/campaign-detail"),
|
||||
handle: { crumb: (data: any) => data.campaign.name },
|
||||
children: [
|
||||
{
|
||||
path: "edit",
|
||||
lazy: () =>
|
||||
import("../../v2-routes/campaigns/campaign-edit"),
|
||||
},
|
||||
{
|
||||
path: "edit-budget",
|
||||
lazy: () =>
|
||||
import("../../v2-routes/campaigns/campaign-budget-edit"),
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/collections",
|
||||
handle: {
|
||||
|
||||
Reference in New Issue
Block a user