revert commit dd8ab64
and minor cleanup for fileActions
This commit is contained in:
parent
73c2d02e38
commit
3eef5d7070
1 changed files with 15 additions and 16 deletions
|
@ -8,8 +8,7 @@ class FileActions extends React.PureComponent {
|
|||
const { fileInfo, uri, openModal, claimIsMine } = this.props;
|
||||
|
||||
const claimId = fileInfo ? fileInfo.claim_id : null,
|
||||
showDelete = fileInfo && Object.keys(fileInfo).length > 0,
|
||||
showSupport = !claimIsMine;
|
||||
showDelete = fileInfo && Object.keys(fileInfo).length > 0;
|
||||
|
||||
return (
|
||||
<section className="card__actions">
|
||||
|
@ -31,22 +30,22 @@ class FileActions extends React.PureComponent {
|
|||
className="no-underline"
|
||||
onClick={() => openModal(modals.CONFIRM_FILE_REMOVE, { uri })}
|
||||
/>}
|
||||
<Link
|
||||
button="text"
|
||||
icon="icon-flag"
|
||||
href={`https://lbry.io/dmca?claim_id=${claimId}`}
|
||||
className="no-underline"
|
||||
label={__("report")}
|
||||
/>
|
||||
{showSupport &&
|
||||
{!claimIsMine &&
|
||||
<Link
|
||||
button="primary"
|
||||
icon="icon-gift"
|
||||
label={__("Support")}
|
||||
navigate="/show"
|
||||
className="card__action--right no-underline"
|
||||
navigateParams={{ uri, tab: "tip" }}
|
||||
button="text"
|
||||
icon="icon-flag"
|
||||
href={`https://lbry.io/dmca?claim_id=${claimId}`}
|
||||
className="no-underline"
|
||||
label={__("report")}
|
||||
/>}
|
||||
<Link
|
||||
button="primary"
|
||||
icon="icon-gift"
|
||||
label={__("Support")}
|
||||
navigate="/show"
|
||||
className="card__action--right no-underline"
|
||||
navigateParams={{ uri, tab: "tip" }}
|
||||
/>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue