diff --git a/code/core/src/manager/components/sidebar/Heading.stories.tsx b/code/core/src/manager/components/sidebar/Heading.stories.tsx index 678a6c8e2ae5..81436bfc0a1d 100644 --- a/code/core/src/manager/components/sidebar/Heading.stories.tsx +++ b/code/core/src/manager/components/sidebar/Heading.stories.tsx @@ -24,9 +24,11 @@ export default { } as Meta; const menuItems = [ - { title: 'Menu Item 1', onClick: action('onActivateMenuItem'), id: '1' }, - { title: 'Menu Item 2', onClick: action('onActivateMenuItem'), id: '2' }, - { title: 'Menu Item 3', onClick: action('onActivateMenuItem'), id: '3' }, + [ + { title: 'Menu Item 1', onClick: action('onActivateMenuItem'), id: '1' }, + { title: 'Menu Item 2', onClick: action('onActivateMenuItem'), id: '2' }, + { title: 'Menu Item 3', onClick: action('onActivateMenuItem'), id: '3' }, + ], ]; export const MenuHighlighted: Story = () => ( diff --git a/code/core/src/manager/components/sidebar/Menu.stories.tsx b/code/core/src/manager/components/sidebar/Menu.stories.tsx index 663bd4caa3b4..d5bf90dc2a60 100644 --- a/code/core/src/manager/components/sidebar/Menu.stories.tsx +++ b/code/core/src/manager/components/sidebar/Menu.stories.tsx @@ -1,4 +1,3 @@ -import type { ComponentProps } from 'react'; import React from 'react'; import { TooltipLinkList } from '@storybook/core/components'; @@ -11,11 +10,13 @@ import type { State } from '@storybook/core/manager-api'; import { useMenu } from '../../container/Menu'; import { LayoutProvider } from '../layout/LayoutProvider'; -import { SidebarMenu } from './Menu'; +import { type MenuList, SidebarMenu } from './Menu'; -const fakemenu: ComponentProps['links'] = [ - { title: 'has icon', icon: , id: 'icon' }, - { title: 'has no icon', id: 'non' }, +const fakemenu: MenuList = [ + [ + { title: 'has icon', icon: , id: 'icon' }, + { title: 'has no icon', id: 'non' }, + ], ]; const meta = {