Remove share button on censored project banner.

Functionality needs reconsidering.
This commit is contained in:
Paul Kaplan 2018-12-07 12:32:54 -05:00
parent a2e46ea6ec
commit 2a464c8c21

View file

@ -132,19 +132,10 @@ const PreviewPresentation = ({
message={<FormattedMessage id="project.deletedBanner" />} message={<FormattedMessage id="project.deletedBanner" />}
/>); />);
} else if (visibilityInfo.censored) { } 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 banner = (<Banner
className="banner-danger" className="banner-danger"
message={embedCensorMessage(visibilityInfo.message)} message={embedCensorMessage(visibilityInfo.message)}
/>); />);
}
} else if (justRemixed) { } else if (justRemixed) {
banner = ( banner = (
<Banner <Banner