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

ui v2: storybook upgrade and config improvements #695

Merged
merged 4 commits into from
Nov 19, 2020

Conversation

danielhochman
Copy link
Collaborator

@danielhochman danielhochman commented Nov 19, 2020

Description

Made some changes to config to get all props to appear.

From https://www.npmjs.com/package/storybook-addon-react-docgen#faq I also learned that React must be imported like so when using React.FC:

import * as React from 'react'; // GOOD
import React from 'react'; // BAD

and a default export is not good enough, the component must also be exported or the props will not appear.

To demo I fixed the Button and its story.

Before
Screenshot from 2020-11-19 11-33-26

After
Screenshot from 2020-11-19 11-35-35

@danielhochman danielhochman requested a review from a team as a code owner November 19, 2020 17:42
@danielhochman danielhochman merged commit 1b49ada into UIV2 Nov 19, 2020
@danielhochman danielhochman deleted the uiv2-storybook-upgrade-config branch November 19, 2020 20:16
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

Successfully merging this pull request may close these issues.

1 participant