use new search suggestion selector

This commit is contained in:
Sean Yesmunt 2018-08-21 00:30:36 -04:00
parent df561cc582
commit 5b92d477e2
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)
};
};