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:
@@ -4,6 +4,7 @@ import type {
|
||||
CustomFieldModelContainerMap,
|
||||
CustomFieldModelFormTabsMap,
|
||||
InjectionZone,
|
||||
NestedRoutePosition,
|
||||
} from "@medusajs/admin-shared"
|
||||
import type { ComponentType } from "react"
|
||||
import { ZodFirstPartySchemaTypes } from "zod"
|
||||
@@ -24,6 +25,11 @@ export interface RouteConfig {
|
||||
* An optional icon to display in the sidebar together with the label. If no label is provided, the icon will be ignored.
|
||||
*/
|
||||
icon?: ComponentType
|
||||
|
||||
/**
|
||||
* The nested route to display under existing route in the sidebar.
|
||||
*/
|
||||
nested?: NestedRoutePosition
|
||||
}
|
||||
|
||||
export type CustomFormField<
|
||||
|
||||
Reference in New Issue
Block a user