refactor: replace ReactElement type annotations with ReactNode in functions

Merged
TA
5mo ago
+14-17

⚠️ This is part 15/23 of #40796. PR for refactor/prepare-types-for-react-19-14 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

  • Refactor
    • Improved TypeScript type definitions throughout the application to enhance code quality and consistency. Updated type signatures in various components and hooks to use more appropriate React types and explicit reference initialization patterns. These enhancements strengthen the codebase's type system and improve code maintainability without affecting any user-facing functionality or features.