-
- Downloads
Refactor RoomAvatar into a functional component. (#29743)
* Refactor RoomAvatar into a functional component * Add useRoomAvatar hook * Remove useRoomAvatar hook and fix RoomAvatarEvents not using thumbnails. * lint * Ensure stable version of roomIdName * Use new hook * lint * remove unused param * Fixup tests * remove console * Update test
Showing
- src/Avatar.ts 4 additions, 3 deletionssrc/Avatar.ts
- src/components/views/avatars/RoomAvatar.tsx 57 additions, 122 deletionssrc/components/views/avatars/RoomAvatar.tsx
- src/components/views/avatars/WithPresenceIndicator.tsx 5 additions, 5 deletionssrc/components/views/avatars/WithPresenceIndicator.tsx
- src/components/views/messages/RoomAvatarEvent.tsx 1 addition, 1 deletionsrc/components/views/messages/RoomAvatarEvent.tsx
- src/components/views/room_settings/RoomProfileSettings.tsx 16 additions, 2 deletionssrc/components/views/room_settings/RoomProfileSettings.tsx
- src/hooks/room/useRoomIdName.ts 32 additions, 0 deletionssrc/hooks/room/useRoomIdName.ts
- test/unit-tests/components/views/avatars/DecoratedRoomAvatar-test.tsx 2 additions, 1 deletion...sts/components/views/avatars/DecoratedRoomAvatar-test.tsx
- test/unit-tests/components/views/avatars/RoomAvatar-test.tsx 13 additions, 1 deletiontest/unit-tests/components/views/avatars/RoomAvatar-test.tsx
Loading
Please register or sign in to comment