Refactor Avatar and AvatarOverlay to have 'account' as prop instead of src and staticSrc (#4526)
* Refactored Avatar and AvatarOverlay (DRY) to have 'account' as prop. Also removed animate attribute from compose navigation bar, which should have never been there. Added test for avatar overlay. * fix broken tests * god dammit another bug in tests! travis please let this pass * formatting in avatar overlay
Showing
- app/javascript/mastodon/components/account.js 1 addition, 1 deletionapp/javascript/mastodon/components/account.js
- app/javascript/mastodon/components/avatar.js 6 additions, 3 deletionsapp/javascript/mastodon/components/avatar.js
- app/javascript/mastodon/components/avatar_overlay.js 6 additions, 6 deletionsapp/javascript/mastodon/components/avatar_overlay.js
- app/javascript/mastodon/components/status.js 2 additions, 2 deletionsapp/javascript/mastodon/components/status.js
- app/javascript/mastodon/features/compose/components/autosuggest_account.js 1 addition, 1 deletion...stodon/features/compose/components/autosuggest_account.js
- app/javascript/mastodon/features/compose/components/navigation_bar.js 1 addition, 1 deletion...pt/mastodon/features/compose/components/navigation_bar.js
- app/javascript/mastodon/features/compose/components/reply_indicator.js 1 addition, 1 deletion...t/mastodon/features/compose/components/reply_indicator.js
- app/javascript/mastodon/features/follow_requests/components/account_authorize.js 1 addition, 1 deletion.../features/follow_requests/components/account_authorize.js
- app/javascript/mastodon/features/status/components/detailed_status.js 1 addition, 1 deletion...pt/mastodon/features/status/components/detailed_status.js
- app/javascript/mastodon/features/ui/components/actions_modal.js 1 addition, 1 deletion...vascript/mastodon/features/ui/components/actions_modal.js
- app/javascript/mastodon/features/ui/components/boost_modal.js 1 addition, 1 deletion...javascript/mastodon/features/ui/components/boost_modal.js
- spec/javascript/components/avatar.test.js 26 additions, 4 deletionsspec/javascript/components/avatar.test.js
- spec/javascript/components/avatar_overlay.test.js 34 additions, 0 deletionsspec/javascript/components/avatar_overlay.test.js
Please register or sign in to comment