diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-09-06 23:04:13 -0700 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-09-06 23:11:58 -0700 |
commit | d8bd57901e33a7057e26e782e295099ffcc0da89 (patch) | |
tree | e12dfc8cad42b1576756d19d7fbfd82646a009bf /webapp/components/searchable_user_list/searchable_user_list_container.jsx | |
parent | 7bc8e9a08dfde56387f946fdf5086252aa4d0491 (diff) | |
download | chat-d8bd57901e33a7057e26e782e295099ffcc0da89.tar.gz chat-d8bd57901e33a7057e26e782e295099ffcc0da89.tar.bz2 chat-d8bd57901e33a7057e26e782e295099ffcc0da89.zip |
Removing webapp
Diffstat (limited to 'webapp/components/searchable_user_list/searchable_user_list_container.jsx')
-rw-r--r-- | webapp/components/searchable_user_list/searchable_user_list_container.jsx | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/webapp/components/searchable_user_list/searchable_user_list_container.jsx b/webapp/components/searchable_user_list/searchable_user_list_container.jsx deleted file mode 100644 index 8c0694a0c..000000000 --- a/webapp/components/searchable_user_list/searchable_user_list_container.jsx +++ /dev/null @@ -1,74 +0,0 @@ -import PropTypes from 'prop-types'; - -// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -import React from 'react'; - -import SearchableUserList from './searchable_user_list.jsx'; - -export default class SearchableUserListContainer extends React.Component { - static propTypes = { - 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) { - super(props); - - this.handleTermChange = this.handleTermChange.bind(this); - - this.nextPage = this.nextPage.bind(this); - this.previousPage = this.previousPage.bind(this); - this.search = this.search.bind(this); - - this.state = { - term: '', - page: 0 - }; - } - - handleTermChange(term) { - this.setState({term}); - } - - nextPage() { - this.setState({page: this.state.page + 1}); - - this.props.nextPage(this.state.page + 1); - } - - previousPage() { - this.setState({page: this.state.page - 1}); - } - - search(term) { - this.props.search(term); - - if (term !== '') { - this.setState({page: 0}); - } - } - - render() { - return ( - <SearchableUserList - {...this.props} - nextPage={this.nextPage} - previousPage={this.previousPage} - search={this.search} - page={this.state.page} - term={this.state.term} - onTermChange={this.handleTermChange} - /> - ); - } -} |