mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Merge pull request #2422 from paulkaplan/no-share-censored
Remove share button on censored project banner.
This commit is contained in:
commit
74490f0922
1 changed files with 4 additions and 13 deletions
|
@ -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
|
||||||
banner = (<Banner
|
className="banner-danger"
|
||||||
actionMessage={<FormattedMessage id="project.share.shareButton" />}
|
message={embedCensorMessage(visibilityInfo.message)}
|
||||||
className="banner-danger"
|
/>);
|
||||||
message={embedCensorMessage(visibilityInfo.message)}
|
|
||||||
onAction={onShare}
|
|
||||||
/>);
|
|
||||||
} else {
|
|
||||||
banner = (<Banner
|
|
||||||
className="banner-danger"
|
|
||||||
message={embedCensorMessage(visibilityInfo.message)}
|
|
||||||
/>);
|
|
||||||
}
|
|
||||||
} else if (justRemixed) {
|
} else if (justRemixed) {
|
||||||
banner = (
|
banner = (
|
||||||
<Banner
|
<Banner
|
||||||
|
|
Loading…
Reference in a new issue