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

addon-info: Props while using JSS injectSheet #3195

Closed
raed667 opened this issue Mar 13, 2018 · 1 comment
Closed

addon-info: Props while using JSS injectSheet #3195

raed667 opened this issue Mar 13, 2018 · 1 comment

Comments

@raed667
Copy link

raed667 commented Mar 13, 2018

Issue details

I have a styled component 'TaskDetail' in which I use React's CSSinJS and basically export it wrapped in a stylesheet:

1- When I try to use the addon-info plugin without the style sheet, it works as expected:

without-stylesheet

2- When I try to inject the style sheet before exposing my component, I lose all info since the component being exporting is actually the JSS wrapper.

export default injectSheet(styles)(TaskDetail);

with-stylesheet

Steps to reproduce

Export a styled component.

Please specify which version of Storybook and optionally any affected addons that you're running

  • storybook/react ^3.3.15
  • storybook/addon-info": "^3.3.15"
@raed667 raed667 closed this as completed Mar 13, 2018
@raed667
Copy link
Author

raed667 commented Mar 13, 2018

Found that this is a dupe of #1735

This issue was closed.
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