-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Replace PropTypes with TypeScript types #407
Replace PropTypes with TypeScript types #407
Conversation
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.
Thank you for contributing!
Please make sure the actions pass. Once your pull request has been merged, you will automatically be added to the contributor's list on the website.
If you want to be shouted out on Linkedin, have a look for the shoutout issue of the specific version.
Quality Gate passedIssues Measures |
I'm not sure why did code coverage decrease even I haven't changed anything in most components' code, so will mark for review and wait for the maintainer's opinion on this. |
that happens, because you defined the interfaces in the file they are used in to my knowledge. |
So should I create a separate interfaces.ts file and add all of them there? I doubt that's what normally happens with component props though Or it's fine for coverage to decrease? It's up to you anyway. |
sorry about the late reply, the drop is fine - we'll recover from that |
The Pull Request is ready
Overview
Replaces runtime type checking introduced with PropTypes package with static type checking using TypeScript
Also added keys to the list items in breadcrumbs component to fix React warning about not using keys in list items
See: https://sentry.io/answers/unique-key-prop/
Website
Notes
Please check if using
name
as a key is unique enough, couldn't think of anything else.Didn't intend to add the keys in this PR but I found it by chance while checking if everything is fine in the website