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(BadgedResource): don't restrict resourceName to a string #1260

Merged
merged 1 commit into from
Jan 28, 2019

Conversation

lizagilman
Copy link
Contributor

What: A fix following discussion on #1238

@patternfly-build
Copy link
Contributor

PatternFly-React preview: https://1260-pr-patternfly-react-patternfly.surge.sh

@coveralls
Copy link

coveralls commented Jan 26, 2019

Pull Request Test Coverage Report for Build 4148

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 80.368%

Totals Coverage Status
Change from base Build 4120: 0.0%
Covered Lines: 4552
Relevant Lines: 5329

💛 - Coveralls

@@ -99,7 +99,7 @@ BadgedResource.propTypes = {
/** Full name of the resource kind to display in the badge tooltip and for screen readers (defaulted if valid resourceKind is given) */
kindStr: PropTypes.string,
/** Name of the resource */
resourceName: PropTypes.string,
resourceName: PropTypes.node,
Copy link
Member

Choose a reason for hiding this comment

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

While type node will accept a string, we typically use PropTypes.oneOfType([PropTypes.string, PropTypes.node]) to make it more clear.

@lizagilman
Copy link
Contributor Author

Thanks @jeff-phillips-18 , updated.

Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

LGTM

@jeff-phillips-18 jeff-phillips-18 merged commit e50bb35 into patternfly:master Jan 28, 2019
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.

6 participants