Skip to content

break(Icon, SVGIconContainer): Update return types for React 18#7414

Merged
jscheiny merged 3 commits intobp6from
js/bp6/react-18-return-types
Mar 28, 2025
Merged

break(Icon, SVGIconContainer): Update return types for React 18#7414
jscheiny merged 3 commits intobp6from
js/bp6/react-18-return-types

Conversation

@jscheiny
Copy link
Copy Markdown
Contributor

Part of #7350

Changes proposed in this pull request:

This PR updates the <Icon> and <SVGIconContainer> generic components to drop React 16 support and mark their
return types as React.ReactNode.

Additionally, I changed the implementation of these to use arrow functions instead of function keyword functions like we do elsewhere. I believe this should have no effect on the functionality, it's just for stylistic consistency and to remove a eslint override.

@svc-palantir-github
Copy link
Copy Markdown

break(Icon, SVGIconContainer): Update return types for React 18

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@jscheiny jscheiny marked this pull request as ready for review March 28, 2025 16:06
ggdouglas
ggdouglas previously approved these changes Mar 28, 2025
@policy-bot policy-bot Bot dismissed ggdouglas’s stale review March 28, 2025 20:42

Invalidated by push of de0bc5a

@svc-palantir-github
Copy link
Copy Markdown

Merge remote-tracking branch 'origin/bp6' into js/bp6/react-18-return-types

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@jscheiny jscheiny merged commit 0202fcb into bp6 Mar 28, 2025
14 checks passed
@jscheiny jscheiny deleted the js/bp6/react-18-return-types branch March 28, 2025 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants