From 9351d17834e81829b5bdbd26a06c00701d547c82 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 21 Nov 2023 16:50:01 +0100 Subject: [PATCH] frontend-plugin-api: update createNavItemExtensions to use new naming strucutre Co-authored-by: Camila Belo Co-authored-by: Philipp Hugenroth Co-authored-by: Vincenzo Scamporlino Signed-off-by: Patrik Oldsberg --- .../src/extensions/createNavItemExtension.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/frontend-plugin-api/src/extensions/createNavItemExtension.tsx b/packages/frontend-plugin-api/src/extensions/createNavItemExtension.tsx index 84fbe5ffee..0ad8d80e96 100644 --- a/packages/frontend-plugin-api/src/extensions/createNavItemExtension.tsx +++ b/packages/frontend-plugin-api/src/extensions/createNavItemExtension.tsx @@ -24,14 +24,17 @@ import { RouteRef } from '../routing'; * @public */ export function createNavItemExtension(options: { - id: string; + namespace?: string; + name?: string; routeRef: RouteRef; title: string; icon: IconComponent; }) { - const { id, routeRef, title, icon } = options; + const { routeRef, title, icon, namespace, name } = options; return createExtension({ - id, + namespace, + name, + kind: 'nav-item', attachTo: { id: 'core.nav', input: 'items' }, configSchema: createSchemaFromZod(z => z.object({