]> cat aescling's git repositories - mastodon.git/commit
Refactor Avatar and AvatarOverlay to have 'account' as prop instead of src and static...
authorOndřej Hruška <ondra@ondrovo.com>
Mon, 7 Aug 2017 17:44:55 +0000 (19:44 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 7 Aug 2017 17:44:55 +0000 (19:44 +0200)
commit594234740788a51fa528152343eb50dc1c6ca093
tree07a8e94ab9405f54694117b04637b2db64ef3f52
parent22db9472253f6ffcfed254f7a406a58b53e80cfe
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
13 files changed:
app/javascript/mastodon/components/account.js
app/javascript/mastodon/components/avatar.js
app/javascript/mastodon/components/avatar_overlay.js
app/javascript/mastodon/components/status.js
app/javascript/mastodon/features/compose/components/autosuggest_account.js
app/javascript/mastodon/features/compose/components/navigation_bar.js
app/javascript/mastodon/features/compose/components/reply_indicator.js
app/javascript/mastodon/features/follow_requests/components/account_authorize.js
app/javascript/mastodon/features/status/components/detailed_status.js
app/javascript/mastodon/features/ui/components/actions_modal.js
app/javascript/mastodon/features/ui/components/boost_modal.js
spec/javascript/components/avatar.test.js
spec/javascript/components/avatar_overlay.test.js [new file with mode: 0644]