hide exact search result for SIMPLE_SITE

This commit is contained in:
Sean Yesmunt 2020-07-24 15:58:37 -04:00
parent e10647b5a2
commit e001906443

View file

@ -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}