From 736248a70bdae4367150d4623c6da637f67d2ab1 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 30 Jan 2019 02:46:45 -0500 Subject: [PATCH] fix: show publish icon on my own claims --- src/renderer/component/fileCard/view.jsx | 3 ++- src/renderer/component/fileTile/view.jsx | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/renderer/component/fileCard/view.jsx b/src/renderer/component/fileCard/view.jsx index 3d980d5a7..be3bd7a41 100644 --- a/src/renderer/component/fileCard/view.jsx +++ b/src/renderer/component/fileCard/view.jsx @@ -133,7 +133,8 @@ class FileCard extends React.PureComponent { {isRewardContent && } {isSubscribed && } - {fileInfo && } + {claimIsMine && } + {!claimIsMine && fileInfo && } {isNew && {__('NEW')}} diff --git a/src/renderer/component/fileTile/view.jsx b/src/renderer/component/fileTile/view.jsx index 773f7b609..0f5245e80 100644 --- a/src/renderer/component/fileTile/view.jsx +++ b/src/renderer/component/fileTile/view.jsx @@ -59,6 +59,7 @@ class FileTile extends React.PureComponent { rewardedContentClaimIds, size, isNew, + claimIsMine, } = this.props; const isRewardContent = claim && rewardedContentClaimIds.includes(claim.claim_id); @@ -67,12 +68,15 @@ class FileTile extends React.PureComponent { } return ( + // TODO: turn this into it's own component and share it with FileCard + // The only issue is icon placement on the search page
{isNew && {__('NEW')}} {isSubscribed && } {isRewardContent && } - {isDownloaded && } + {!claimIsMine && isDownloaded && } + {claimIsMine && }
); }