feat(dashboard): ability to locate new admin route under existing route (#10587)
This PR add ability to locate new admin route under existing route in sidebar. For example, new route Brands   https://github.com/user-attachments/assets/b46b1813-e92e-4b67-84a1-84660023ac7c
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export const NESTED_ROUTE_POSITIONS = [
|
||||
"/orders",
|
||||
"/products",
|
||||
"/inventory",
|
||||
"/customers",
|
||||
"/promotions",
|
||||
"/price-lists",
|
||||
] as const
|
||||
@@ -0,0 +1,2 @@
|
||||
export * from "./constants"
|
||||
export * from "./types"
|
||||
@@ -0,0 +1,3 @@
|
||||
import { NESTED_ROUTE_POSITIONS } from "./constants"
|
||||
|
||||
export type NestedRoutePosition = (typeof NESTED_ROUTE_POSITIONS)[number]
|
||||
@@ -1,3 +1,4 @@
|
||||
export * from "./extensions/custom-fields"
|
||||
export * from "./extensions/routes"
|
||||
export * from "./extensions/widgets"
|
||||
export * from "./virtual-modules"
|
||||
|
||||
Reference in New Issue
Block a user