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:
Riqwan Thamir
2024-05-09 10:00:28 +02:00
committed by GitHub
parent 5952fddad5
commit 6da2964998
48 changed files with 2027 additions and 100 deletions
@@ -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: {