Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"MenuItemComponent" Component - No propTypes defined! #13514

Closed
ChenJiaWe opened this issue Dec 24, 2020 · 0 comments
Closed

"MenuItemComponent" Component - No propTypes defined! #13514

ChenJiaWe opened this issue Dec 24, 2020 · 0 comments

Comments

@ChenJiaWe
Copy link

When I want to use child Components in a Conmponent,I want to show the propTypes of the child Conponents.

Thats what I see in Storybook:
storybook_bug

This is my code:

export default {
    title: "Menu Compoent",
    compoent: Menu,
    decorators: [withInfo],
    parameters: {
        info: {
            inline: true,
        }
    }
} as Meta;

export const defalutMenu: Story<MenuProps> = () => (
    <div>
        <Menu defaultIndex="0" onSelect={action("selected")} >
            <MenuItem >
                cool link
  </MenuItem >
            <MenuItem >
                cool link 2
  </MenuItem>
            <MenuItem >
                cool link 3
  </MenuItem >
        </Menu>
    </div>
);
defalutMenu.storyName = "Menu";

What should I do ? Is my code wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant