riot-web/test/components/views
David Baker 3342aa5ff8
Refactor some logic into common AvatarSetting component (#12544)
* Refactor some logic into common AvatarSetting component

We duplicated some of the logic of setting avatars between profiles &
rooms. This pulls some of that logic into the AvatarSetting component
and hopefully make things a little simpler.

* Unsed import

* Convert JS based hover to CSS

* Remove unnecessary container

* Test avatar-as-file path

* Test file upload

* Unused imports

* Add test for RoomProfileSettings

* Test removing room avatar

* Move upload control CSS too

* Remove commented code

Co-authored-by: Florian Duros <florianduros@element.io>

* Prettier

* Coments & move style to inline as per PR suggestion

* Better test names

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Fix test

Upload input doesn't have that class anymore

---------

Co-authored-by: Florian Duros <florianduros@element.io>
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2024-05-21 10:37:02 +00:00
..
audio_messages
auth Tooltip: migrate remaining tooltips from `AccessibleTooltipButton` to `AccessibleButton` (#12522) 2024-05-17 14:11:07 +00:00
avatars
beacon
beta
context_menus
dialogs
elements
emojipicker
location
messages
polls/pollHistory
right_panel
room_settings Refactor some logic into common AvatarSetting component (#12544) 2024-05-21 10:37:02 +00:00
rooms Use `RovingAccessibleButton` instead of `RovingAccessibleTooltipButton` (#12539) 2024-05-17 10:29:30 +00:00
settings Refactor some logic into common AvatarSetting component (#12544) 2024-05-21 10:37:02 +00:00
spaces Tooltip: Improve accessibility for context menus (#12462) 2024-05-15 14:25:30 +00:00
toasts
typography
user-onboarding
voip
Validation-test.ts
VerificationShowSas-test.tsx