Merge pull request #2394 from paulkaplan/fix-censor-endpoint-shape

Use message instead of censorMessage for the censor message.
This commit is contained in:
Paul Kaplan 2018-12-05 08:31:33 -05:00 committed by GitHub
commit 40795d1cb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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
})

View file

@ -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
})