frontend-plugin-api: update createNavItemExtensions to use new naming strucutre
Co-authored-by: Camila Belo <camilaibs@gmail.com> Co-authored-by: Philipp Hugenroth <philipph@spotify.com> Co-authored-by: Vincenzo Scamporlino <vincenzos@spotify.com> Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -24,14 +24,17 @@ import { RouteRef } from '../routing';
|
||||
* @public
|
||||
*/
|
||||
export function createNavItemExtension(options: {
|
||||
id: string;
|
||||
namespace?: string;
|
||||
name?: string;
|
||||
routeRef: RouteRef<undefined>;
|
||||
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({
|
||||
|
||||
Reference in New Issue
Block a user