From 0197a0b7f2e726a4721c37ace2ffb97efcadbbfc Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 31 Jan 2017 19:16:35 +0100 Subject: [PATCH] Revert to animating avatars by default --- .../components/components/avatar.jsx | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/components/components/avatar.jsx b/app/assets/javascripts/components/components/avatar.jsx index 8f407ee5fa..0237a19046 100644 --- a/app/assets/javascripts/components/components/avatar.jsx +++ b/app/assets/javascripts/components/components/avatar.jsx @@ -91,7 +91,14 @@ const Avatar = React.createClass({ propTypes: { src: React.PropTypes.string.isRequired, size: React.PropTypes.number.isRequired, - style: React.PropTypes.object + style: React.PropTypes.object, + animated: React.PropTypes.bool + }, + + getDefaultProps () { + return { + animated: true + }; }, getInitialState () { @@ -129,9 +136,17 @@ const Avatar = React.createClass({ render () { const { hovering } = this.state; + if (this.props.animated) { + return ( +
+ +
+ ); + } + return (
- +
);