diff options
Diffstat (limited to 'app/javascript/mastodon/components/avatar_overlay.js')
-rw-r--r-- | app/javascript/mastodon/components/avatar_overlay.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/javascript/mastodon/components/avatar_overlay.js b/app/javascript/mastodon/components/avatar_overlay.js index b76750513..a9643499d 100644 --- a/app/javascript/mastodon/components/avatar_overlay.js +++ b/app/javascript/mastodon/components/avatar_overlay.js @@ -2,20 +2,21 @@ import React from 'react'; import PropTypes from 'prop-types'; class AvatarOverlay extends React.PureComponent { + static propTypes = { staticSrc: PropTypes.string.isRequired, - overlaySrc: PropTypes.string.isRequired + overlaySrc: PropTypes.string.isRequired, }; render() { const {staticSrc, overlaySrc} = this.props; const baseStyle = { - backgroundImage: `url(${staticSrc})` + backgroundImage: `url(${staticSrc})`, }; const overlayStyle = { - backgroundImage: `url(${overlaySrc})` + backgroundImage: `url(${overlaySrc})`, }; return ( |