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 = ({
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)}
/>);
}
banner = (<Banner
className="banner-danger"
message={embedCensorMessage(visibilityInfo.message)}
/>);
} else if (justRemixed) {
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