diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/permissions/shared/components/UserHolder.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/permissions/shared/components/UserHolder.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/apps/permissions/shared/components/UserHolder.js b/server/sonar-web/src/main/js/apps/permissions/shared/components/UserHolder.js index d95158c9032..4ef61d7aa0b 100644 --- a/server/sonar-web/src/main/js/apps/permissions/shared/components/UserHolder.js +++ b/server/sonar-web/src/main/js/apps/permissions/shared/components/UserHolder.js @@ -18,16 +18,17 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import React from 'react'; +import PropTypes from 'prop-types'; import Avatar from '../../../../components/ui/Avatar'; import { translate } from '../../../../helpers/l10n'; export default class UserHolder extends React.PureComponent { static propTypes = { - user: React.PropTypes.object.isRequired, - permissions: React.PropTypes.array.isRequired, - selectedPermission: React.PropTypes.string, - permissionsOrder: React.PropTypes.array.isRequired, - onToggle: React.PropTypes.func.isRequired + user: PropTypes.object.isRequired, + permissions: PropTypes.array.isRequired, + selectedPermission: PropTypes.string, + permissionsOrder: PropTypes.array.isRequired, + onToggle: PropTypes.func.isRequired }; handleClick(permission, e) { |