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(svg): migrate defaultProps to default parameters #305

Merged
merged 2 commits into from Mar 5, 2023
Merged

fix(svg): migrate defaultProps to default parameters #305

merged 2 commits into from Mar 5, 2023

Conversation

TotomInc
Copy link
Contributor

@TotomInc TotomInc commented Mar 3, 2023

defaultProps is deprecated and will be removed from function components

fix #298

Summary

There's an error because this lib is using defaultProps for the SVG.tsx component. defaultProps are deprecated in function components.

CleanShot 2023-03-03 at 13 25 55@2x

A simple fix is to migrate defaultProps to default JS parameters.

Related Issue #[issue number]

#298 has been opened, thanks to @shehi for pointing out the file to update.

Any Breaking Changes

There is no breaking changes.

Checklist

  • Are all the test cases passing?
  • [] If any new feature has been added, then are the test cases updated/added?
  • [] Has the documentation been updated for the proposed change, if required?

defaultProps is deprecated and will be removed from function components

fix #298
@codesandbox
Copy link

codesandbox bot commented Mar 3, 2023

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

shehi
shehi previously approved these changes Mar 3, 2023
@shehi
Copy link

shehi commented Mar 3, 2023

@danilowoz , this looks good. Can you review, merge and release this please?

danilowoz
danilowoz previously approved these changes Mar 5, 2023
@danilowoz danilowoz dismissed stale reviews from shehi and themself via 1d2a803 March 5, 2023 19:18
@danilowoz danilowoz merged commit b71cebd into danilowoz:master Mar 5, 2023
@shehi
Copy link

shehi commented Mar 12, 2023

@danilowoz . v6.2.0 apparently doesn't contain this fix. It seems release checks failed. Can you please check and make a release with this? Thanks.

@github-actions
Copy link

🎉 This PR is included in version 6.2.1 🎉

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.

SVG: Support for defaultProps will be removed from function components
3 participants