mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-30 08:51:24 +00:00
hide exact search result for SIMPLE_SITE
This commit is contained in:
parent
e10647b5a2
commit
e001906443
1 changed files with 20 additions and 17 deletions
|
@ -1,4 +1,5 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
import { SIMPLE_SITE } from 'config';
|
||||||
import * as ICONS from 'constants/icons';
|
import * as ICONS from 'constants/icons';
|
||||||
import * as PAGES from 'constants/pages';
|
import * as PAGES from 'constants/pages';
|
||||||
import React, { useEffect, Fragment } from 'react';
|
import React, { useEffect, Fragment } from 'react';
|
||||||
|
@ -75,23 +76,25 @@ export default function SearchPage(props: Props) {
|
||||||
<section className="search">
|
<section className="search">
|
||||||
{urlQuery && (
|
{urlQuery && (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<header className="search__header">
|
{!SIMPLE_SITE && (
|
||||||
<div className="claim-preview__actions--header">
|
<header className="search__header">
|
||||||
<ClaimUri uri={uriFromQuery} noShortUrl />
|
<div className="claim-preview__actions--header">
|
||||||
<Button
|
<ClaimUri uri={uriFromQuery} noShortUrl />
|
||||||
button="link"
|
<Button
|
||||||
className="media__uri--right"
|
button="link"
|
||||||
label={__('View top claims for %normalized_uri%', {
|
className="media__uri--right"
|
||||||
normalized_uri: uriFromQuery,
|
label={__('View top claims for %normalized_uri%', {
|
||||||
})}
|
normalized_uri: uriFromQuery,
|
||||||
navigate={`/$/${PAGES.TOP}?name=${modifiedUrlQuery}`}
|
})}
|
||||||
icon={ICONS.TOP}
|
navigate={`/$/${PAGES.TOP}?name=${modifiedUrlQuery}`}
|
||||||
/>
|
icon={ICONS.TOP}
|
||||||
</div>
|
/>
|
||||||
<div className="card">
|
</div>
|
||||||
<ClaimPreview uri={uriFromQuery} type="large" placeholder="publish" />
|
<div className="card">
|
||||||
</div>
|
<ClaimPreview uri={uriFromQuery} type="large" placeholder="publish" />
|
||||||
</header>
|
</div>
|
||||||
|
</header>
|
||||||
|
)}
|
||||||
|
|
||||||
<ClaimList
|
<ClaimList
|
||||||
uris={uris}
|
uris={uris}
|
||||||
|
|
Loading…
Add table
Reference in a new issue