refactor(ui-avatar): remove unnecessary ReactElement type annotations from AppAvatar, MessageAvatar, and RoomAvatar components
Merged
TA
5mo ago+4+4+0123456789-7-7-0123456789
⚠️ This is part 2/23 of #40796. PR for refactor/prepare-types-for-react-19-1 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 type definitions for avatar components to support more flexible content types
- Cleaned up unused imports and return type annotations across avatar component files