Merge pull request #2422 from paulkaplan/no-share-censored

Remove share button on censored project banner.
This commit is contained in:
Paul Kaplan 2018-12-07 14:03:38 -05:00 committed by GitHub
commit 74490f0922
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,19 +132,10 @@ const PreviewPresentation = ({
message={<FormattedMessage id="project.deletedBanner" />}
/>);
} else if (visibilityInfo.censored) {
if (visibilityInfo.reshareable) {
banner = (<Banner
actionMessage={<FormattedMessage id="project.share.shareButton" />}
className="banner-danger"
message={embedCensorMessage(visibilityInfo.message)}
onAction={onShare}
/>);
} else {
banner = (<Banner
className="banner-danger"
message={embedCensorMessage(visibilityInfo.message)}
/>);
}
} else if (justRemixed) {
banner = (
<Banner