diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-12-03 08:23:43 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-12-03 08:23:43 -0500 |
commit | e92695c4a4a027e428ad32b69583bee25a3ba24a (patch) | |
tree | f81fb936fff2a2e64c64d92b5181ae610574304b /web/react/components/search_bar.jsx | |
parent | eddd4e0fc49582cf7f484168f5e2c08b0ac89596 (diff) | |
parent | 482e3fc9a494a54df53d99b060a7cfa13b3d95c0 (diff) | |
download | chat-e92695c4a4a027e428ad32b69583bee25a3ba24a.tar.gz chat-e92695c4a4a027e428ad32b69583bee25a3ba24a.tar.bz2 chat-e92695c4a4a027e428ad32b69583bee25a3ba24a.zip |
Merge pull request #1579 from hmhealey/plt1298
PLT-1298 Converted Command and @Mention autocomplete to new suggestion components
Diffstat (limited to 'web/react/components/search_bar.jsx')
-rw-r--r-- | web/react/components/search_bar.jsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/web/react/components/search_bar.jsx b/web/react/components/search_bar.jsx index 0ea5c451a..77c9e39b9 100644 --- a/web/react/components/search_bar.jsx +++ b/web/react/components/search_bar.jsx @@ -5,9 +5,10 @@ import * as client from '../utils/client.jsx'; import * as AsyncClient from '../utils/async_client.jsx'; import SearchStore from '../stores/search_store.jsx'; import AppDispatcher from '../dispatcher/app_dispatcher.jsx'; -import SuggestionBox from '../components/suggestion_box.jsx'; -import SearchChannelProvider from '../components/search_channel_provider.jsx'; -import SearchUserProvider from '../components/search_user_provider.jsx'; +import SuggestionBox from './suggestion/suggestion_box.jsx'; +import SearchChannelProvider from './suggestion/search_channel_provider.jsx'; +import SearchSuggestionList from './suggestion/search_suggestion_list.jsx'; +import SearchUserProvider from './suggestion/search_user_provider.jsx'; import * as utils from '../utils/utils.jsx'; import Constants from '../utils/constants.jsx'; var ActionTypes = Constants.ActionTypes; @@ -164,6 +165,7 @@ export default class SearchBar extends React.Component { onFocus={this.handleUserFocus} onBlur={this.handleUserBlur} onUserInput={this.handleUserInput} + listComponent={SearchSuggestionList} providers={this.suggestionProviders} /> {isSearching} |