diff --git a/ui/component/wunderbar/view.jsx b/ui/component/wunderbar/view.jsx index 990abb47f..9caa89f9f 100644 --- a/ui/component/wunderbar/view.jsx +++ b/ui/component/wunderbar/view.jsx @@ -168,7 +168,7 @@ export default function WunderBar(props: Props) { {uriFromQueryIsValid ? : null} -
{__('Search Results')}
+
{__('Search Results')}
{results.slice(0, 5).map(uri => ( ))} diff --git a/ui/component/wunderbarSuggestion/view.jsx b/ui/component/wunderbarSuggestion/view.jsx index de7df23f5..ee274734b 100644 --- a/ui/component/wunderbarSuggestion/view.jsx +++ b/ui/component/wunderbarSuggestion/view.jsx @@ -8,11 +8,10 @@ import ChannelThumbnail from 'component/channelThumbnail'; type Props = { claim: ?Claim, uri: string, - noComboBox?: boolean, }; export default function WunderbarSuggestion(props: Props) { - const { claim, uri, noComboBox = false } = props; + const { claim, uri } = props; if (!claim) { return null; @@ -20,12 +19,8 @@ export default function WunderbarSuggestion(props: Props) { const isChannel = claim.value_type === 'channel'; - const Wrapper = noComboBox - ? (props: any) =>
{props.children}
- : (props: any) => {props.children}; - return ( - +
-
+ ); } diff --git a/ui/component/wunderbarTopSuggestion/index.js b/ui/component/wunderbarTopSuggestion/index.js index c7597460e..32c46b4ef 100644 --- a/ui/component/wunderbarTopSuggestion/index.js +++ b/ui/component/wunderbarTopSuggestion/index.js @@ -7,12 +7,11 @@ const select = (state, props) => { const uriFromQuery = `lbry://${props.query}`; let uris = [uriFromQuery]; - let channelUriFromQuery; try { const { isChannel } = parseURI(uriFromQuery); if (!isChannel) { - channelUriFromQuery = `lbry://@${props.query}`; + const channelUriFromQuery = `lbry://@${props.query}`; uris.push(channelUriFromQuery); } } catch (e) {} diff --git a/ui/component/wunderbarTopSuggestion/view.jsx b/ui/component/wunderbarTopSuggestion/view.jsx index fa0f03545..086fa3db8 100644 --- a/ui/component/wunderbarTopSuggestion/view.jsx +++ b/ui/component/wunderbarTopSuggestion/view.jsx @@ -2,10 +2,8 @@ import React from 'react'; import LbcSymbol from 'component/common/lbc-symbol'; import WunderbarSuggestion from 'component/wunderbarSuggestion'; -import { ComboboxOption } from '@reach/combobox'; type Props = { - query: string, winningUri: ?string, doResolveUris: (Array) => void, uris: Array, @@ -13,7 +11,7 @@ type Props = { }; export default function WunderbarTopSuggestion(props: Props) { - const { query, uris, resolvingUris, winningUri, doResolveUris } = props; + const { uris, resolvingUris, winningUri, doResolveUris } = props; const stringifiedUris = JSON.stringify(uris); React.useEffect(() => { @@ -46,13 +44,11 @@ export default function WunderbarTopSuggestion(props: Props) { return ( <> - -
- -
+
+ +
- -
+
); diff --git a/ui/scss/component/_wunderbar.scss b/ui/scss/component/_wunderbar.scss index 6963d0dc9..7adafd470 100644 --- a/ui/scss/component/_wunderbar.scss +++ b/ui/scss/component/_wunderbar.scss @@ -98,10 +98,6 @@ .wunderbar__label { margin-bottom: var(--spacing-xs); -} - -.wunderbar__label--results { - @extend .wunderbar__label; margin-left: var(--spacing-xs); }