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: update iconAfter prop type definition #824

Merged
merged 1 commit into from Sep 28, 2021

Conversation

adamstankiewicz
Copy link
Member

@adamstankiewicz adamstankiewicz commented Sep 28, 2021

Changes the Button component's iconAfter prop type to PropTypes.oneOfType instead of PropTypes.instanceOf to match the iconBefore prop. Also, generally it doesn't seem PropTypes.instanceOf actually supports passing an array to it for multiple types per its implementation:

https://github.com/facebook/prop-types/blob/4de0644a10a554d0a556daa39f029369bc007ea5/factoryWithTypeCheckers.js#L297-L307

Also, configures Jest to ignore tests in the dependent-usage-analyzer directory (which may include Git checkouts of 30+ projects). Running tests with these projects checked out resulted in Jest attempting to run tests in all projects.

Copy link
Contributor

@muselesscreator muselesscreator left a comment

Choose a reason for hiding this comment

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

LGTM

@adamstankiewicz adamstankiewicz merged commit 4e13370 into master Sep 28, 2021
@adamstankiewicz adamstankiewicz deleted the astankiewicz/button-prop-types-iconAfter branch September 28, 2021 18:58
@edx-semantic-release
Copy link
Contributor

🎉 This PR is included in version 16.14.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants