Merge pull request #250 from lbryio/search-selector

use new search suggestion selector
This commit is contained in:
Sean Yesmunt 2018-08-22 11:13:41 -04:00 committed by GitHub
commit 9a89d4c44c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

2
app/package-lock.json generated
View file

@ -3958,7 +3958,7 @@
}
},
"lbry-redux": {
"version": "github:lbryio/lbry-redux#467e48c77b8004cef738e950bdcc67654748ae9f",
"version": "github:lbryio/lbry-redux#31f7afa8a37f5741dac01fc1ecdf153f3bed95dc",
"from": "github:lbryio/lbry-redux",
"requires": {
"proxy-polyfill": "0.1.6",

View file

@ -1,12 +1,13 @@
import { connect } from 'react-redux';
import { doUpdateSearchQuery, selectSearchState as selectSearch } from 'lbry-redux';
import { doUpdateSearchQuery, selectSearchState as selectSearch, selectSearchSuggestions } from 'lbry-redux';
import UriBar from './view';
const select = state => {
const { ...searchState } = selectSearch(state);
return {
...searchState
...searchState,
suggestions: selectSearchSuggestions(state)
};
};