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

fixed "Warning: FontAwesomeIcon: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead." #171

Merged
merged 1 commit into from
May 16, 2024

Conversation

gregmarut
Copy link
Contributor

fixes #170

@gregmarut gregmarut changed the title fixed "Warning: FlatGrid: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead." fixed "Warning: FontAwesomeIcon: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead." Apr 26, 2024
…oved from memo components in a future major release. Use JavaScript default parameters instead."
@Willham12
Copy link

lgtm

@robmadole
Copy link
Member

Thank you for this! Getting it released now.

@robmadole robmadole merged commit ea7551d into FortAwesome:master May 16, 2024
1 check passed
@renchap
Copy link

renchap commented May 21, 2024

This PR has issues, for example if you pass <FontAwesomeIcon style={undefined}>, then it will fail with "Cant's read property color of undefined"

@robmadole
Copy link
Member

I've addressed this with 0.3.2 I believe. And I've got some tests in place now to guard against all the props with undefined values being passed.

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