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

Removed usages of hoc-style addons from the docs #3845

Merged
merged 2 commits into from
Jul 6, 2018

Conversation

tmeasday
Copy link
Member

@tmeasday tmeasday commented Jul 6, 2018

Issue: Some docs files still used withX(options)(story) style addon-usage. In particular, notes and info

What I did

Change to use parameter-based API.

How to test

Verify that the code samples work.

@tmeasday
Copy link
Member Author

tmeasday commented Jul 6, 2018

Perhaps @tsiq-swyx might take a look at the typescript changes. I think they are sensible.

info: {
TableComponent,
},
});
Copy link
Member Author

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 },
});
Copy link
Member Author

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
Copy link

codecov bot commented Jul 6, 2018

Codecov Report

Merging #3845 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa9779e...7fa35c9. Read the comment docs.

@tmeasday tmeasday merged commit 682bc08 into master Jul 6, 2018
@tmeasday tmeasday deleted the tmeasday/clean-up-addon-usage-docs branch July 6, 2018 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants