refactor(ui-composer): remove unnecessary ReactElement type annotations across components
Merged
TA
5mo ago+27+27+01234567890123456789-28-28-01234567890123456789
โ ๏ธ This is part 3/23 of #40796. PR for refactor/prepare-types-for-react-19-2 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
- Chores
- Simplified TypeScript type annotations across message composer components. Removed explicit return type declarations to rely on type inference, improving code maintainability while preserving all existing functionality.