diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-07-25 13:18:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-25 13:18:52 +0200 |
commit | e561d11d7d517fbe9f3e2cfac3af9d11fd0fbf56 (patch) | |
tree | 594be45f13149d274e252d2a844733a12a25dc5b /server/sonar-web/src/main/js/components/ui/Avatar.js | |
parent | e8e323c872295d176016bd1dfcc3c7191b3de0e6 (diff) | |
download | sonarqube-e561d11d7d517fbe9f3e2cfac3af9d11fd0fbf56.tar.gz sonarqube-e561d11d7d517fbe9f3e2cfac3af9d11fd0fbf56.zip |
update react (#2288)
Diffstat (limited to 'server/sonar-web/src/main/js/components/ui/Avatar.js')
-rw-r--r-- | server/sonar-web/src/main/js/components/ui/Avatar.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/components/ui/Avatar.js b/server/sonar-web/src/main/js/components/ui/Avatar.js index fcd34da318f..a2a53f474aa 100644 --- a/server/sonar-web/src/main/js/components/ui/Avatar.js +++ b/server/sonar-web/src/main/js/components/ui/Avatar.js @@ -18,6 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import React from 'react'; +import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import md5 from 'blueimp-md5'; import classNames from 'classnames'; @@ -47,13 +48,13 @@ function getTextColor(background) { class Avatar extends React.PureComponent { static propTypes = { - enableGravatar: React.PropTypes.bool.isRequired, - gravatarServerUrl: React.PropTypes.string.isRequired, - email: React.PropTypes.string, - hash: React.PropTypes.string, - name: React.PropTypes.string.isRequired, - size: React.PropTypes.number.isRequired, - className: React.PropTypes.string + enableGravatar: PropTypes.bool.isRequired, + gravatarServerUrl: PropTypes.string.isRequired, + email: PropTypes.string, + hash: PropTypes.string, + name: PropTypes.string.isRequired, + size: PropTypes.number.isRequired, + className: PropTypes.string }; renderFallback() { |