diff options
Diffstat (limited to 'server/sonar-web/src/main/js/components/select-list')
4 files changed, 21 insertions, 17 deletions
diff --git a/server/sonar-web/src/main/js/components/select-list/footer.js b/server/sonar-web/src/main/js/components/select-list/footer.js index 3088c2f2337..d85be905a9d 100644 --- a/server/sonar-web/src/main/js/components/select-list/footer.js +++ b/server/sonar-web/src/main/js/components/select-list/footer.js @@ -18,12 +18,13 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import React from 'react'; +import PropTypes from 'prop-types'; export default class Footer extends React.PureComponent { static propTypes = { - count: React.PropTypes.number.isRequired, - total: React.PropTypes.number.isRequired, - loadMore: React.PropTypes.func.isRequired + count: PropTypes.number.isRequired, + total: PropTypes.number.isRequired, + loadMore: PropTypes.func.isRequired }; loadMore = e => { diff --git a/server/sonar-web/src/main/js/components/select-list/item.js b/server/sonar-web/src/main/js/components/select-list/item.js index ecd5442c927..c03ef453c04 100644 --- a/server/sonar-web/src/main/js/components/select-list/item.js +++ b/server/sonar-web/src/main/js/components/select-list/item.js @@ -18,14 +18,15 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import React from 'react'; +import PropTypes from 'prop-types'; import Checkbox from '../controls/Checkbox'; export default class Item extends React.PureComponent { static propTypes = { - item: React.PropTypes.any.isRequired, - renderItem: React.PropTypes.func.isRequired, - selectItem: React.PropTypes.func.isRequired, - deselectItem: React.PropTypes.func.isRequired + item: PropTypes.any.isRequired, + renderItem: PropTypes.func.isRequired, + selectItem: PropTypes.func.isRequired, + deselectItem: PropTypes.func.isRequired }; onCheck = checked => { diff --git a/server/sonar-web/src/main/js/components/select-list/list.js b/server/sonar-web/src/main/js/components/select-list/list.js index 6a701f51eb4..c752367bb8e 100644 --- a/server/sonar-web/src/main/js/components/select-list/list.js +++ b/server/sonar-web/src/main/js/components/select-list/list.js @@ -18,15 +18,16 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import React from 'react'; +import PropTypes from 'prop-types'; import Item from './item'; export default class List extends React.PureComponent { static propTypes = { - items: React.PropTypes.array.isRequired, - renderItem: React.PropTypes.func.isRequired, - getItemKey: React.PropTypes.func.isRequired, - selectItem: React.PropTypes.func.isRequired, - deselectItem: React.PropTypes.func.isRequired + items: PropTypes.array.isRequired, + renderItem: PropTypes.func.isRequired, + getItemKey: PropTypes.func.isRequired, + selectItem: PropTypes.func.isRequired, + deselectItem: PropTypes.func.isRequired }; render() { diff --git a/server/sonar-web/src/main/js/components/select-list/main.js b/server/sonar-web/src/main/js/components/select-list/main.js index 64902383add..3ebfeafaa9b 100644 --- a/server/sonar-web/src/main/js/components/select-list/main.js +++ b/server/sonar-web/src/main/js/components/select-list/main.js @@ -18,17 +18,18 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import React from 'react'; +import PropTypes from 'prop-types'; import Controls from './controls'; import List from './list'; import Footer from './footer'; export default class Main extends React.PureComponent { static propTypes = { - loadItems: React.PropTypes.func.isRequired, - renderItem: React.PropTypes.func.isRequired, - getItemKey: React.PropTypes.func.isRequired, - selectItem: React.PropTypes.func.isRequired, - deselectItem: React.PropTypes.func.isRequired + loadItems: PropTypes.func.isRequired, + renderItem: PropTypes.func.isRequired, + getItemKey: PropTypes.func.isRequired, + selectItem: PropTypes.func.isRequired, + deselectItem: PropTypes.func.isRequired }; state = { |