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: specify children for react v18 types #1230

Merged
merged 2 commits into from
Apr 24, 2022
Merged

Conversation

christopherklint97
Copy link
Contributor

Short summary

After some changes in react v18, the FunctionComponent type no longer implicitly passes children as part of the props. This means that the children prop needs to be declared explicitly.

@vercel
Copy link

vercel bot commented Apr 11, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/lingui-js/js-lingui/GbLakdGwVgbwD8xjy3PtjfogqBXL
✅ Preview: Failed

[Deployment for 8593b6a failed]

Copy link
Contributor

@ggascoigne ggascoigne left a comment

Choose a reason for hiding this comment

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

Well I'm not part of this project so I don't feel that I can approve this, but I can say that I think that this is the correct change.

@semoal
Copy link
Contributor

semoal commented Apr 14, 2022

Thanks guys for the contribution, will take care of the new pull requests and new issues in a few days! Been doing some home renovations and couldn’t find time to oss 🤟🏻

@semoal semoal merged commit ee69736 into lingui:main Apr 24, 2022
@semoal
Copy link
Contributor

semoal commented Apr 24, 2022

Thanks guys, will release a new version at the end of today

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

Successfully merging this pull request may close these issues.

3 participants