-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Removed usages of hoc-style addons from the docs #3845
Conversation
Perhaps @tsiq-swyx might take a look at the typescript changes. I think they are sensible. |
info: { | ||
TableComponent, | ||
}, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this line is the only actual change in this file, it seems prettier has started formatting it.
.add('With Markdown', withMarkdownNotes(someMarkdownText)(() => <MyComponent/>)); | ||
storiesOf('Component', module).add('With Markdown', () => <MyComponent />, { | ||
notes: { markdown: someMarkdownText }, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, this is the only actual change in this file.
Codecov Report
@@ Coverage Diff @@
## master #3845 +/- ##
=======================================
Coverage 41.32% 41.32%
=======================================
Files 455 455
Lines 5193 5193
Branches 903 903
=======================================
Hits 2146 2146
Misses 2501 2501
Partials 546 546 Continue to review full report at Codecov.
|
Issue: Some docs files still used
withX(options)(story)
style addon-usage. In particular,notes
andinfo
What I did
Change to use parameter-based API.
How to test
Verify that the code samples work.