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 ThemeProvider children type to be used with conditional rendering #1067

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

spaenleh
Copy link
Member

@spaenleh spaenleh commented Sep 30, 2024

The current type does not allow to have null elements as children. If we want to be able to use condition rendering inside the children object we should use the more loose type of ReactNode to type the children prop.

@spaenleh spaenleh self-assigned this Sep 30, 2024
@spaenleh spaenleh added the bug 🪲 Something isn't working label Sep 30, 2024
Copy link
Contributor

@ReidyT ReidyT left a comment

Choose a reason for hiding this comment

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

LGTM 🦤

Copy link

sonarcloud bot commented Sep 30, 2024

@spaenleh spaenleh added this pull request to the merge queue Sep 30, 2024
Merged via the queue into main with commit 5794e9e Sep 30, 2024
3 checks passed
@spaenleh spaenleh deleted the update-theme-provider-children-type branch October 1, 2024 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working v5.2.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants