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:
@@ -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"),
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user