mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-22 15:17:53 -05:00
Merge pull request #2394 from paulkaplan/fix-censor-endpoint-shape
Use message instead of censorMessage for the censor message.
This commit is contained in:
commit
40795d1cb9
2 changed files with 4 additions and 4 deletions
|
@ -127,13 +127,13 @@ const PreviewPresentation = ({
|
|||
banner = (<Banner
|
||||
actionMessage={<FormattedMessage id="project.share.shareButton" />}
|
||||
className="banner-danger"
|
||||
message={embedCensorMessage(visibilityInfo.censorMessage)}
|
||||
message={embedCensorMessage(visibilityInfo.message)}
|
||||
onAction={onShare}
|
||||
/>);
|
||||
} else {
|
||||
banner = (<Banner
|
||||
className="banner-danger"
|
||||
message={embedCensorMessage(visibilityInfo.censorMessage)}
|
||||
message={embedCensorMessage(visibilityInfo.message)}
|
||||
/>);
|
||||
}
|
||||
} else if (canShare) {
|
||||
|
@ -595,7 +595,7 @@ PreviewPresentation.propTypes = {
|
|||
userOwnsProject: PropTypes.bool,
|
||||
visibilityInfo: PropTypes.shape({
|
||||
censored: PropTypes.bool,
|
||||
censorMessage: PropTypes.string,
|
||||
message: PropTypes.string,
|
||||
deleted: PropTypes.bool,
|
||||
reshareable: PropTypes.bool
|
||||
})
|
||||
|
|
|
@ -649,7 +649,7 @@ Preview.propTypes = {
|
|||
userPresent: PropTypes.bool,
|
||||
visibilityInfo: PropTypes.shape({
|
||||
censored: PropTypes.bool,
|
||||
censorMessage: PropTypes.string,
|
||||
message: PropTypes.string,
|
||||
deleted: PropTypes.bool,
|
||||
reshareable: PropTypes.bool
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue