feat(dashboard): added details page for promotions + edit sliders (#6882)

* chore: added details page for promotions

* chore: add edit rules, edit details and edit campaign pages

* chore: change to type button

* chore: connection for rules

* chore: listing rule labels of multiple modules

* chore: add badge summary list

* chore: fix campaigns
This commit is contained in:
Riqwan Thamir
2024-04-06 13:20:31 +02:00
committed by GitHub
parent 07fb058d96
commit 5e30b8cce6
60 changed files with 2803 additions and 153 deletions
@@ -150,6 +150,34 @@ export const v2Routes: RouteObject[] = [
path: "",
lazy: () => import("../../v2-routes/promotions/promotion-list"),
},
{
path: ":id",
lazy: () =>
import("../../v2-routes/promotions/promotion-detail"),
handle: {
crumb: (data: AdminPromotionRes) => data.promotion?.code,
},
children: [
{
path: "edit",
lazy: () =>
import(
"../../v2-routes/promotions/promotion-edit-details"
),
},
{
path: "add-to-campaign",
lazy: () =>
import(
"../../v2-routes/promotions/promotion-add-campaign"
),
},
{
path: ":ruleType/edit",
lazy: () => import("../../v2-routes/promotions/edit-rules"),
},
],
},
],
},
{