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

fix(Label): fix shorthand create method #644

Merged
merged 4 commits into from
Oct 8, 2016
Merged

Conversation

levithomason
Copy link
Member

@levithomason levithomason commented Oct 8, 2016

This PR fixes 2 issues:

  • left over deprecated labeled Button usages in the docs
  • Label.create returned undefined

Heads up, we cannot put a static create = createShorthandFactory() call in a class, as was the Label. The Label class is not yet defined, so the factory returns undefined.

I've updated the factories to throw if the Component is not a string or function. I've also added tests for this.

@codecov-io
Copy link

codecov-io commented Oct 8, 2016

Current coverage is 100% (diff: 100%)

Merging #644 into master will not change coverage

@@           master   #644   diff @@
====================================
  Files         119    119          
  Lines        1890   1890          
  Methods         0      0          
  Messages        0      0          
  Branches        0      0          
====================================
  Hits         1890   1890          
  Misses          0      0          
  Partials        0      0          

Powered by Codecov. Last update 978f206...0fd031e

@levithomason
Copy link
Member Author

Still working on figuring out what is going on with PR build statuses. This PR is passing and fully covered:

Tests passed: https://circleci.com/gh/Semantic-Org/Semantic-UI-React/56
100% covered: https://codecov.io/gh/Semantic-Org/Semantic-UI-React/pull/644

@levithomason levithomason changed the title docs(Button): fix all labeled usages fix(Label): fix shorthand create method Oct 8, 2016
@levithomason levithomason merged commit 34a17bb into master Oct 8, 2016
@levithomason levithomason deleted the fix/labeled-buttons branch October 8, 2016 03:05
@levithomason
Copy link
Member Author

Released in semantic-ui-react@0.54.4

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

Successfully merging this pull request may close these issues.

2 participants