mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-17 05:02:23 +08:00
FIX build
This commit is contained in:
parent
2caf6af6d3
commit
35420e0778
@ -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",
|
||||
|
@ -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} />;
|
||||
|
||||
|
@ -87,7 +87,7 @@ Link.propTypes = {
|
||||
onClick: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
interface StoriesProps {
|
||||
export interface StoriesProps {
|
||||
loading: boolean;
|
||||
stories: State['StoriesHash'];
|
||||
storyId?: undefined | string;
|
||||
|
@ -3,7 +3,7 @@ import React from 'react';
|
||||
import SidebarSubheading from './SidebarSubheading';
|
||||
|
||||
export default {
|
||||
Component: SidebarSubheading,
|
||||
component: SidebarSubheading,
|
||||
title: 'UI|Sidebar/SidebarSubheading',
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user