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(Tab): relax menuItem prop type #1823

Merged
merged 1 commit into from
Jun 30, 2017
Merged

fix(Tab): relax menuItem prop type #1823

merged 1 commit into from
Jun 30, 2017

Conversation

levithomason
Copy link
Member

@levithomason levithomason commented Jun 30, 2017

Fixes #1822

The Tab was designed to allow any shorthand value to be passed as the menuItem. The propType was limited to string.

This PR relaxes the propType and adds an example with shorthand menuItems.

Copy link
Member

@layershifter layershifter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@levithomason typings should be also updated, use any there.

Whoops, it will be done only in #1812.

@codecov-io
Copy link

codecov-io commented Jun 30, 2017

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1823   +/-   ##
=======================================
  Coverage   99.75%   99.75%           
=======================================
  Files         144      144           
  Lines        2463     2463           
=======================================
  Hits         2457     2457           
  Misses          6        6
Impacted Files Coverage Δ
src/modules/Tab/Tab.js 100% <ø> (ø) ⬆️

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 dbc3b00...37181e4. Read the comment docs.

@levithomason levithomason merged commit 481a4a6 into master Jun 30, 2017
@levithomason levithomason deleted the fix/menu-item branch June 30, 2017 16:40
@levithomason
Copy link
Member Author

Released in semantic-ui-react@0.71.0.

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.

3 participants