FIX build

This commit is contained in:
Norbert de Langen 2019-07-31 18:41:09 +02:00
parent 2caf6af6d3
commit 35420e0778
4 changed files with 8 additions and 6 deletions

View File

@ -23,6 +23,8 @@
},
"dependencies": {
"@storybook/addons": "5.2.0-beta.18",
"@storybook/addon-actions": "5.2.0-beta.18",
"@storybook/addon-knobs": "5.2.0-beta.18",
"@storybook/api": "5.2.0-beta.18",
"@storybook/channels": "5.2.0-beta.18",
"@storybook/client-logger": "5.2.0-beta.18",

View File

@ -26,10 +26,10 @@ export default {
};
const menuItems = [
{ title: 'Menu Item 1', onClick: action('onActivateMenuItem') },
{ title: 'Menu Item 2', onClick: action('onActivateMenuItem') },
{ title: 'Menu Item 3', onClick: action('onActivateMenuItem') },
] as any;
{ 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 = () => <SidebarHeading menuHighlighted menu={menuItems} />;

View File

@ -87,7 +87,7 @@ Link.propTypes = {
onClick: PropTypes.func.isRequired,
};
interface StoriesProps {
export interface StoriesProps {
loading: boolean;
stories: State['StoriesHash'];
storyId?: undefined | string;

View File

@ -3,7 +3,7 @@ import React from 'react';
import SidebarSubheading from './SidebarSubheading';
export default {
Component: SidebarSubheading,
component: SidebarSubheading,
title: 'UI|Sidebar/SidebarSubheading',
};