refactor: replace ReactElement type annotations with ReactNode in components
Merged
TA
5mo ago+22+22+01234567890123456789-29-29-01234567890123456789
⚠️ This is part 14/23 of #40796. PR for refactor/prepare-types-for-react-19-13 must be merged first.
Proposed changes (including videos or screenshots)
As a first step towards upgrading to React 19, it handles types from @types/react looking forward the next major.
Issue(s)
Task: ARCH-2170
Steps to test or reproduce
Further comments
No runtime change is expected from it.
Summary by CodeRabbit
Release Notes
- Refactor
- Improved TypeScript type definitions across UI components for better type flexibility and consistency. Enhanced type support for component properties and hook parameters to accommodate a wider range of valid React elements and references. All changes are internal with no impact on user-facing functionality.