fix #7137
1 changed files with 11 additions and 15 deletions
|
@ -23,7 +23,6 @@ type Props = {
|
|||
isResolvingWinningUri: boolean,
|
||||
winningClaim: ?Claim,
|
||||
isSearching: boolean,
|
||||
preferEmbed: boolean,
|
||||
};
|
||||
|
||||
export default function SearchTopClaim(props: Props) {
|
||||
|
@ -37,7 +36,6 @@ export default function SearchTopClaim(props: Props) {
|
|||
beginPublish,
|
||||
isResolvingWinningUri,
|
||||
isSearching,
|
||||
preferEmbed,
|
||||
} = props;
|
||||
const uriFromQuery = `lbry://${query}`;
|
||||
const { push } = useHistory();
|
||||
|
@ -90,19 +88,17 @@ export default function SearchTopClaim(props: Props) {
|
|||
)}
|
||||
{winningUri && winningClaim && (
|
||||
<div className="card">
|
||||
{preferEmbed && (
|
||||
<ClaimPreview
|
||||
hideRepostLabel
|
||||
showNullPlaceholder
|
||||
uri={winningUri}
|
||||
properties={(claim) => (
|
||||
<span className="claim-preview__custom-properties">
|
||||
<ClaimRepostAuthor short uri={winningUri} />
|
||||
<ClaimEffectiveAmount uri={winningUri} />
|
||||
</span>
|
||||
)}
|
||||
/>
|
||||
)}
|
||||
<ClaimPreview
|
||||
hideRepostLabel
|
||||
showNullPlaceholder
|
||||
uri={winningUri}
|
||||
properties={(claim) => (
|
||||
<span className="claim-preview__custom-properties">
|
||||
<ClaimRepostAuthor short uri={winningUri} />
|
||||
<ClaimEffectiveAmount uri={winningUri} />
|
||||
</span>
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
{!winningUri && (isSearching || isResolvingWinningUri) && (
|
||||
|
|
Loading…
Reference in a new issue