mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-28 16:01:26 +00:00
don't hide lbc details if no description
This commit is contained in:
parent
fd5cde08c3
commit
dc3fac6a4c
1 changed files with 2 additions and 4 deletions
|
@ -23,7 +23,7 @@ type Props = {
|
||||||
};
|
};
|
||||||
|
|
||||||
function FileDescription(props: Props) {
|
function FileDescription(props: Props) {
|
||||||
const { uri, claim, metadata, tags, pendingAmount, doOpenModal, claimIsMine } = props;
|
const { uri, claim, metadata, pendingAmount, doOpenModal, claimIsMine } = props;
|
||||||
const [expanded, setExpanded] = React.useState(false);
|
const [expanded, setExpanded] = React.useState(false);
|
||||||
const [showCreditDetails, setShowCreditDetails] = React.useState(false);
|
const [showCreditDetails, setShowCreditDetails] = React.useState(false);
|
||||||
const amount = parseFloat(claim.amount) + parseFloat(pendingAmount || claim.meta.support_amount);
|
const amount = parseFloat(claim.amount) + parseFloat(pendingAmount || claim.meta.support_amount);
|
||||||
|
@ -36,8 +36,6 @@ function FileDescription(props: Props) {
|
||||||
|
|
||||||
const { description } = metadata;
|
const { description } = metadata;
|
||||||
|
|
||||||
if (!description && !(tags && tags.length)) return null;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div
|
<div
|
||||||
|
@ -47,7 +45,7 @@ function FileDescription(props: Props) {
|
||||||
'media__info-text--fade': !expanded,
|
'media__info-text--fade': !expanded,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<MarkdownPreview className="markdown-preview--description" content={description} simpleLinks />
|
{description && <MarkdownPreview className="markdown-preview--description" content={description} simpleLinks />}
|
||||||
<ClaimTags uri={uri} type="large" />
|
<ClaimTags uri={uri} type="large" />
|
||||||
<FileDetails uri={uri} />
|
<FileDetails uri={uri} />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue