Unverified Commit 74490f09 authored by Paul Kaplan's avatar Paul Kaplan Committed by GitHub

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

Remove share button on censored project banner.
parents a2e46ea6 2a464c8c
...@@ -132,19 +132,10 @@ const PreviewPresentation = ({ ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment