From 3eef5d707040120624bc74dc066bdc5dedbe9095 Mon Sep 17 00:00:00 2001 From: btzr-io Date: Mon, 9 Oct 2017 19:27:35 -0600 Subject: [PATCH] revert commit dd8ab64 and minor cleanup for fileActions --- ui/js/component/fileActions/view.jsx | 31 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/ui/js/component/fileActions/view.jsx b/ui/js/component/fileActions/view.jsx index fed9d85e6..78db60baf 100644 --- a/ui/js/component/fileActions/view.jsx +++ b/ui/js/component/fileActions/view.jsx @@ -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 (
@@ -31,22 +30,22 @@ class FileActions extends React.PureComponent { className="no-underline" onClick={() => openModal(modals.CONFIRM_FILE_REMOVE, { uri })} />} - - {showSupport && + {!claimIsMine && } +
); }