-
Notifications
You must be signed in to change notification settings - Fork 352
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
fix(BadgedResource): don't restrict resourceName to a string #1260
Conversation
PatternFly-React preview: https://1260-pr-patternfly-react-patternfly.surge.sh |
Pull Request Test Coverage Report for Build 4148
💛 - 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, |
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.
While type node will accept a string, we typically use PropTypes.oneOfType([PropTypes.string, PropTypes.node]) to make it more clear.
afd3881
to
298d673
Compare
Thanks @jeff-phillips-18 , updated. |
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.
LGTM
What: A fix following discussion on #1238