Skip to content

fix(types): fix Grid.children to be React.ReactNode#5188

Merged
chasestarr merged 2 commits intouber:masterfrom
alexgorbatchev:fix-grid
Oct 5, 2022
Merged

fix(types): fix Grid.children to be React.ReactNode#5188
chasestarr merged 2 commits intouber:masterfrom
alexgorbatchev:fix-grid

Conversation

@alexgorbatchev
Copy link
Contributor

Description

Grid.children is currently typed incorrectly in TS and doesn't allow this basic usage pattern:

image

it's possible to work around this via

image

or

image

However, this change shouldn't be necessary when upgrading from 11 to 12 IMO.

This PR fixes the issue.

Scope

Patch: Bug Fix

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 4, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 06f5568:

Sandbox Source
Basic usage Configuration

@chasestarr chasestarr merged commit 44b4839 into uber:master Oct 5, 2022
@alexgorbatchev alexgorbatchev deleted the fix-grid branch October 6, 2022 23:25
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.

2 participants