diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-05-18 09:28:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-18 09:28:18 -0400 |
commit | 2bbedd9def2a782f370fb5280994ea0ecbf8a7c7 (patch) | |
tree | c97936580a81c561aa9884d1c414c54bd49d401a /webapp/components/searchable_user_list | |
parent | 63e599c43b66f0dd95f7f07c783c40fdaf89e3fb (diff) | |
download | chat-2bbedd9def2a782f370fb5280994ea0ecbf8a7c7.tar.gz chat-2bbedd9def2a782f370fb5280994ea0ecbf8a7c7.tar.bz2 chat-2bbedd9def2a782f370fb5280994ea0ecbf8a7c7.zip |
Updating client dependencies. Switching to yarn. (#6433)
* Updating client dependancies. Switching to using yarn.
* Updating React
* Moving pure components to using function syntax (performance gains with newer react version)
* Updating client dependancies.
* Ignore .yarninstall
* Enabling pre-lockfile because it's the entire point of using yarn.
* Removing old webpack config
* Moving to new prop-types
* Fixing ESLint Errors
* Updating jest snapshots.
* Cleaning up package.json
Diffstat (limited to 'webapp/components/searchable_user_list')
-rw-r--r-- | webapp/components/searchable_user_list/searchable_user_list.jsx | 35 | ||||
-rw-r--r-- | webapp/components/searchable_user_list/searchable_user_list_container.jsx | 22 |
2 files changed, 30 insertions, 27 deletions
diff --git a/webapp/components/searchable_user_list/searchable_user_list.jsx b/webapp/components/searchable_user_list/searchable_user_list.jsx index 31db29d6b..dae7835ac 100644 --- a/webapp/components/searchable_user_list/searchable_user_list.jsx +++ b/webapp/components/searchable_user_list/searchable_user_list.jsx @@ -2,6 +2,7 @@ // See License.txt for license information. import $ from 'jquery'; +import PropTypes from 'prop-types'; import React from 'react'; import ReactDOM from 'react-dom'; import {FormattedMessage} from 'react-intl'; @@ -14,23 +15,23 @@ const NEXT_BUTTON_TIMEOUT = 500; export default class SearchableUserList extends React.Component { static propTypes = { - users: React.PropTypes.arrayOf(React.PropTypes.object), - usersPerPage: React.PropTypes.number, - total: React.PropTypes.number, - extraInfo: React.PropTypes.object, - nextPage: React.PropTypes.func.isRequired, - previousPage: React.PropTypes.func.isRequired, - search: React.PropTypes.func.isRequired, - actions: React.PropTypes.arrayOf(React.PropTypes.func), - actionProps: React.PropTypes.object, - actionUserProps: React.PropTypes.object, - focusOnMount: React.PropTypes.bool, - renderCount: React.PropTypes.func, - renderFilterRow: React.PropTypes.func, - - page: React.PropTypes.number.isRequired, - term: React.PropTypes.string.isRequired, - onTermChange: React.PropTypes.func.isRequired + users: PropTypes.arrayOf(PropTypes.object), + usersPerPage: PropTypes.number, + total: PropTypes.number, + extraInfo: PropTypes.object, + nextPage: PropTypes.func.isRequired, + previousPage: PropTypes.func.isRequired, + search: PropTypes.func.isRequired, + actions: PropTypes.arrayOf(PropTypes.func), + actionProps: PropTypes.object, + actionUserProps: PropTypes.object, + focusOnMount: PropTypes.bool, + renderCount: PropTypes.func, + renderFilterRow: PropTypes.func, + + page: PropTypes.number.isRequired, + term: PropTypes.string.isRequired, + onTermChange: PropTypes.func.isRequired }; static defaultProps = { diff --git a/webapp/components/searchable_user_list/searchable_user_list_container.jsx b/webapp/components/searchable_user_list/searchable_user_list_container.jsx index 9713572de..8c0694a0c 100644 --- a/webapp/components/searchable_user_list/searchable_user_list_container.jsx +++ b/webapp/components/searchable_user_list/searchable_user_list_container.jsx @@ -1,3 +1,5 @@ +import PropTypes from 'prop-types'; + // Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. // See License.txt for license information. @@ -7,16 +9,16 @@ import SearchableUserList from './searchable_user_list.jsx'; export default class SearchableUserListContainer extends React.Component { static propTypes = { - users: React.PropTypes.arrayOf(React.PropTypes.object), - usersPerPage: React.PropTypes.number, - total: React.PropTypes.number, - extraInfo: React.PropTypes.object, - nextPage: React.PropTypes.func.isRequired, - search: React.PropTypes.func.isRequired, - actions: React.PropTypes.arrayOf(React.PropTypes.func), - actionProps: React.PropTypes.object, - actionUserProps: React.PropTypes.object, - focusOnMount: React.PropTypes.bool + users: PropTypes.arrayOf(PropTypes.object), + usersPerPage: PropTypes.number, + total: PropTypes.number, + extraInfo: PropTypes.object, + nextPage: PropTypes.func.isRequired, + search: PropTypes.func.isRequired, + actions: PropTypes.arrayOf(PropTypes.func), + actionProps: PropTypes.object, + actionUserProps: PropTypes.object, + focusOnMount: PropTypes.bool }; constructor(props) { |