aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/users
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-07-25 13:18:52 +0200
committerGitHub <noreply@github.com>2017-07-25 13:18:52 +0200
commite561d11d7d517fbe9f3e2cfac3af9d11fd0fbf56 (patch)
tree594be45f13149d274e252d2a844733a12a25dc5b /server/sonar-web/src/main/js/apps/users
parente8e323c872295d176016bd1dfcc3c7191b3de0e6 (diff)
downloadsonarqube-e561d11d7d517fbe9f3e2cfac3af9d11fd0fbf56.tar.gz
sonarqube-e561d11d7d517fbe9f3e2cfac3af9d11fd0fbf56.zip
update react (#2288)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/users')
-rw-r--r--server/sonar-web/src/main/js/apps/users/components/UsersAppContainer.js3
-rw-r--r--server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UsersSelectSearch-test.js.snap6
2 files changed, 6 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/users/components/UsersAppContainer.js b/server/sonar-web/src/main/js/apps/users/components/UsersAppContainer.js
index d70383fd891..3dae41946b2 100644
--- a/server/sonar-web/src/main/js/apps/users/components/UsersAppContainer.js
+++ b/server/sonar-web/src/main/js/apps/users/components/UsersAppContainer.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 Helmet from 'react-helmet';
import { connect } from 'react-redux';
import init from '../init';
@@ -26,7 +27,7 @@ import { translate } from '../../../helpers/l10n';
class UsersAppContainer extends React.PureComponent {
static propTypes = {
- currentUser: React.PropTypes.object.isRequired
+ currentUser: PropTypes.object.isRequired
};
componentDidMount() {
diff --git a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UsersSelectSearch-test.js.snap b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UsersSelectSearch-test.js.snap
index 23e19035a29..483f49d3ea0 100644
--- a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UsersSelectSearch-test.js.snap
+++ b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UsersSelectSearch-test.js.snap
@@ -9,8 +9,10 @@ exports[`should render correctly 1`] = `
backspaceToRemoveMessage="Press backspace to remove {label}"
className="Select-big"
clearAllText="Clear all"
+ clearRenderer={[Function]}
clearValueText="Clear value"
clearable={false}
+ deleteRemoves={true}
delimiter=","
disabled={false}
escapeClearsValue={true}
@@ -31,7 +33,6 @@ exports[`should render correctly 1`] = `
onChange={[Function]}
onCloseResetsInput={true}
onInputChange={[Function]}
- openAfterFocus={false}
optionComponent={[Function]}
options={Array []}
pageSize={5}
@@ -77,8 +78,10 @@ exports[`should render correctly 3`] = `
backspaceToRemoveMessage="Press backspace to remove {label}"
className="Select-big"
clearAllText="Clear all"
+ clearRenderer={[Function]}
clearValueText="Clear value"
clearable={false}
+ deleteRemoves={true}
delimiter=","
disabled={false}
escapeClearsValue={true}
@@ -99,7 +102,6 @@ exports[`should render correctly 3`] = `
onChange={[Function]}
onCloseResetsInput={true}
onInputChange={[Function]}
- openAfterFocus={false}
optionComponent={[Function]}
options={
Array [