This commit is contained in:
jessopb 2021-09-20 17:06:55 -04:00 committed by GitHub
parent eca9b2fcbf
commit 7303abcda6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,6 @@ type Props = {
isResolvingWinningUri: boolean, isResolvingWinningUri: boolean,
winningClaim: ?Claim, winningClaim: ?Claim,
isSearching: boolean, isSearching: boolean,
preferEmbed: boolean,
}; };
export default function SearchTopClaim(props: Props) { export default function SearchTopClaim(props: Props) {
@ -37,7 +36,6 @@ export default function SearchTopClaim(props: Props) {
beginPublish, beginPublish,
isResolvingWinningUri, isResolvingWinningUri,
isSearching, isSearching,
preferEmbed,
} = props; } = props;
const uriFromQuery = `lbry://${query}`; const uriFromQuery = `lbry://${query}`;
const { push } = useHistory(); const { push } = useHistory();
@ -90,19 +88,17 @@ export default function SearchTopClaim(props: Props) {
)} )}
{winningUri && winningClaim && ( {winningUri && winningClaim && (
<div className="card"> <div className="card">
{preferEmbed && ( <ClaimPreview
<ClaimPreview hideRepostLabel
hideRepostLabel showNullPlaceholder
showNullPlaceholder uri={winningUri}
uri={winningUri} properties={(claim) => (
properties={(claim) => ( <span className="claim-preview__custom-properties">
<span className="claim-preview__custom-properties"> <ClaimRepostAuthor short uri={winningUri} />
<ClaimRepostAuthor short uri={winningUri} /> <ClaimEffectiveAmount uri={winningUri} />
<ClaimEffectiveAmount uri={winningUri} /> </span>
</span> )}
)} />
/>
)}
</div> </div>
)} )}
{!winningUri && (isSearching || isResolvingWinningUri) && ( {!winningUri && (isSearching || isResolvingWinningUri) && (