| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| children: PropTypes.node, | ||
| onItemClick: PropTypes.object, | ||
| title: PropTypes.string, | ||
| title: PropTypes.node, |
There was a problem hiding this comment.
While node works for both, we typically have used:
| title: PropTypes.node, | |
| title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]), |
to be more explicit
Sorry, something went wrong.
There was a problem hiding this comment.
Not sure that it's required node can be anything that can be rendered https://reactjs.org/docs/typechecking-with-proptypes.html#proptypes
Sorry, something went wrong.
There was a problem hiding this comment.
Understood, just looking for consistency and explicitly noting in the docs.
Sorry, something went wrong.
There was a problem hiding this comment.
Guys, I do not care ;-)
I am seeing both variants in places. Tell me if I need to change it to get the PR merged or not.
Yes - change / No - leave it.
That's what I care about :-D Because w/o that I cannot finish the PRs above.
Sorry, something went wrong.
There was a problem hiding this comment.
Thx!
Sorry, something went wrong.
|
@martinpovolny Could you rebase your branch to fix the build error? |
Sorry, something went wrong.
|
Rebased. |
Sorry, something went wrong.
|
PatternFly-React preview: https://patternfly-react-pr-2825.surge.sh |
Sorry, something went wrong.
|
Your changes have been released in:
Thanks for your contribution! 🎉 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Allow HorizontalNavMenuItem's title to be a node rather than just a string.
Needed by: ManageIQ/react-ui-components#115 and ManageIQ/manageiq-ui-classic#5997
Ping @karelhala